You should definately bookmark the sites mikeyddddd posted. You'll be visiting php.net a lot. Just add a function name to the URL for a link right to the page...
www.php.net/mysql_query
I haven't used that book, but I started with an O'Reilly book which was only ok.