The book I always recommend is the PHP Developers Cookbook (http://www.amazon.co.uk/PHP-Develope...6615033&sr=1-3). It has great examples, from database connection to shopping basket programming.

This book is not, however, a "quick fix" book - you need to sit down, read and absorb. Once finished, you will have all the examples you need in developing some great applications.