Error when trying to connect to db locally - menu.php
Hi,
I keep receiving these error message when trying to view any page locally. I only see the top part of the logo and one menu item.
* Notice: Undefined variable: database_localhost in /Users/kate/Sites/Powerstore/CSSMenuWriter/cssmw_home/menu.php on line 58
Notice: Undefined variable: localhost in /Users/kate/Sites/Powerstore/CSSMenuWriter/cssmw_home/menu.php on line 58
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /Users/kate/Sites/Powerstore/CSSMenuWriter/cssmw_home/menu.php on line 58
Notice: Undefined variable: localhost in /Users/kate/Sites/Powerstore/CSSMenuWriter/cssmw_home/menu.php on line 60
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /Users/kate/Sites/Powerstore/CSSMenuWriter/cssmw_home/menu.php on line 60
My localhost.php:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_localhost = "localhost";
$database_localhost = "powerstore";
$username_localhost = "root";
$password_localhost = "****";
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);
?>
Thanks in advance for any help. Kate