php.net and dev.mysql.com is very good place to start along.
For documentaion needs, functions and everything else, just visit online docs.
http://dev.mysql.com/doc/refman/5.1/en/index.html
http://www.php.net/manual/en/
You will find most of your needs answered on these docs.