That would probably depend on what sort of prior programming experience you have. I've usually had good results with the O'Reilly books for programming references. If you are a novice to programming in general, Learning PHP and MySQL might be a good choice. If you're an experience programmer, then you might want to go straight to Programming PHP.