The book I always recommend is the PHP Developers Cookbook ( 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.