I have XAMMP v1.7.2 for Windows running on a Windows XP SP2 box ... Now typically, I've been running my php script from online webhosts, but want to try get it working locally.
When viewing the page, I am presented with the following errors:
- Code: Select all
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\class.Mysql.php on line 18
Fatal error: Call to undefined function error() in C:\xampp\htdocs\class.Mysql.php on line 101
So, I have no user called ODBC what so ever ... here is the few lines from that file:
- Code: Select all
17 global $config;
18 $this->rLink = mysql_connect( $config[ "host" ], $config[ "username" ], $config[ "password" ] );
19 if( !$this->rLink )
20 {
21 $this->triggerError( "Could not make connection with <i>" . $config[ "host" ] . "</i>." );
Now my db, user, and password is pulled from config.php which reads:
- Code: Select all
<?
$config[ "username" ] = "xxx";
$config[ "password" ] = "xxx";
$config[ "host" ] = "localhost";
$config[ "database" ] = "xxxx";
?>
Any ideas?