View Full Version : Php... I need to conect to mysql...


gurlygal
09-15-2003, 03:02 PM
A little help please...
Every time I go to a website on php I either can't make heads or tails of the examples or there aren't any....
Could sombody help me connect php to mysql???

PunkGo
09-17-2003, 02:45 AM
err...heres the code

mysql_connect("host", "username", "password")
or die(mysql_error());
mysql_select_db("databasenamehere")
or die(mysql_error());