MYSQL php connection

I've got my MYSQL database created (DaveC42_weight_test) with a couple of records in it, and I've got a PHP page working (www.davesbrain.ca/test1.php) in my root folder. Now I want to put them together.

What is the path to my db?

$db = mysql_connect("?", "?");
 
$dbh=mysql_connect("mysql.jodoshared.com", "username", "pwd") or die ('I cannot connect to the database because: ' . mysql_error());


I'm on the Windows Hosting thingimijig, but I think we all have the same db server: mysql.jodoshared.com
 
I would like to point out that using the above method is preffered, sometimes if you use Dreamweaver it will use a mysql_pconnect() which is a persistant connection, and will leave zombies on the server.
 
Back
Top