php and mysql, keeps returning error?

Kohn

New member
ok so i have the following php code on part of a webpage:

$dbHost = 'localhost';
$dbUsername = 'username';
$dbPassword = password';
$dbDatabase = 'db_name';

$db = mysql_connect($dbHost, $dbUsername, $dbPassword) or die ("Unable to connect to Database Server.");
mysql_select_db ($dbDatabase, $db) or die ("Could not select database.");



the problem is, "Could not select database" keeps getting returned

and ideas?
@joelkatz,,
if the settings were wrong then "Unable to connect to Database Server" would show up.
 
Back
Top