Please read the manuals and use them for reference before you ask questions. That's what they are there for.
There are a lot of great tutorials on the web to learn the basics of PHP and MySQL. Once you understand them, you just adapt to your needs. Look for tutorials on
www.phpbuilder.com (obviously)
www.devshed.com (my favorite)
www.hotwired.com/webmonkey (this is where i learned. look under programming)
This forum and the one on devshed.com are great for getting your questions answered. I personally like the layout on devshed better, but I come over here occasionally to help people.
Happy programming...
---JH