Cannot Connect MySQL Database
Hi,
I am unable to connect to the database and test Powerstore. I have been able to make a successful localhost connection in Dreamweaver and using the store.sql information (imported to my database & table) but no luck.
Notice: Undefined variable: database_test in C:\htdocs\DurableToys\CSSMenuWriter\cssmw_home\menu.php on line 65
Notice: Undefined variable: localhost in C:\htdocs\DurableToys\CSSMenuWriter\cssmw_home\menu.php on line 65
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\htdocs\DurableToys\CSSMenuWriter\cssmw_home\menu.php on line 65
Notice: Undefined variable: localhost in C:\htdocs\DurableToys\CSSMenuWriter\cssmw_home\menu.php on line 67
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\htdocs\DurableToys\CSSMenuWriter\cssmw_home\menu.php on line 67
In the menu.php, lines 65 & 67, here is the code:
65 mysql_select_db($database_locahost, $localhost);
67 $menuwriter_productcategories = mysql_query($query_menuwriter_productcategories, $localhost) or die(mysql_error());
Since it references $localhost, I also checked localhost.php--
$hostname_localhost = "localhost";
$database_localhost = "test";
$username_localhost = "durable";
$password_localhost = "****";
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);
Any help would be appreciated! :)
Thanks
SH