I've included db.php into my script, and this is all it contains:
$host = 'localhost';
$username = '***';
$password = '***';
$database = '***';
$connection = mysql_pconnect($host, $username, $password);
$mysql_select_db($database, $connection);
obviously with the other fields filled out.
My webhost tells me to use this script:
$dbh=mysql_connect ("localhost", "<USERNAME HERE>", "<PASSWORD HERE>") or
die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("<TABLE NAME>");
neither one of these methods work, actually - I get this error:
[the contents of my db.php file here, in plain text!]No Database Selected
Anyone know what I'm doing wrong?