PHP and MySQL : create-modify-reuse / Tim Boronczyk with Martin E. Psinas, Wiley, 2008
This is a cookbook full of good example code. There is not much introduction, then it jumps in to User Registration, Community Forum, Mailing List, Search Engine, Personal Calendar, Ajax File Manager, Online Photo Album, Shopping Cart, Web Site Statistics and News/Blog System . There is good advice on writing shell scripts. The book ends with a good, clear discussion of security and logging.