I have installed PHP and MySQL using WAMP5 as my server on a Vista
machine.
I can run PHP scripts no problem.
I can create and populate MySQL tables no problem.
I cannot seem to get my PHP script to recognize any MySQL commands.
The following code fails silently, i.e. even the "die" text won't
display.
//Database Connection
$msdb = mysql_connect(" 127.0.0.1", "", "") or die('Could not connect
to MySQL: ' . mysql_error());
mysql_select_db ("test", $msdb) or die('Could not select the database:
' . mysql_error());
What piece of info am I missing here? Is there some perl-style
include that I'm missing? Or is it some configuration parameter? Any
help appreciated.
machine.
I can run PHP scripts no problem.
I can create and populate MySQL tables no problem.
I cannot seem to get my PHP script to recognize any MySQL commands.
The following code fails silently, i.e. even the "die" text won't
display.
//Database Connection
$msdb = mysql_connect(" 127.0.0.1", "", "") or die('Could not connect
to MySQL: ' . mysql_error());
mysql_select_db ("test", $msdb) or die('Could not select the database:
' . mysql_error());
What piece of info am I missing here? Is there some perl-style
include that I'm missing? Or is it some configuration parameter? Any
help appreciated.
Comment