PDA

View Full Version : php/ mysql


jonathan C
12-12-2002, 01:00 AM
What are some good resources on how to integrate PHP and MYSQL. I have looked both at php.net and at the mysql site and neither explain in basic terms how to get data in and out of a mysql database through php. Or maybe they do and i just don't understand it. If my understanding is correct, you just use mysql commands within <?php blah blah ?> tags. is that correct or what am I missing. Maybe it's that i need to connect to the database. If so, what is the best way to connect? Any suggestions on books or preferrably websites that could explain this a little better?

Dynasty
12-12-2002, 08:19 AM
Connecting is just

mysql_connect(Server,Username,Password);

And yes the commands just go in the <?php ?> tags.

www.phpbuilder.org is a good site.

MikeParent
12-13-2002, 05:13 AM
Having the Wrox PHP Programming book by your side is handy (all the Wrox "red" books are phenomenal references) .

The MySQL HTML documentation (installs with MySQL), is also invaluable.

As mentioned PHP Builder is a good site.
CodeMain (http://www.codemain.com/) is also a good one.