Hello,
I have php and mysql installed on windows 2000 server.
PHP works fine by its self and can interact with an odbc database.
Mysql works fine by its self and I can use navicat to query the mysql db.
I can not get php to connect to mysql? Any ideas on what might be going on?
$dbhost = "localhost";
$dbusername = "username";
$dbpasswd = "password";
$database_name = 'test';
$connection = mysql_connect("$dbhost","$dbusername","$dbpasswd")or die ("Could not connect to Database.");
The above are the same exact settings I am using in Navicat to connect. What would cause php to not connect?
Many Thanks
Chris