ShamaJamms
Programmer
- Mar 28, 2007
- 11
HTTP, PHP, and MySQL servers are all running localhost on my machine, and configured/setup. I am able to login and edit MySQL via Windows command prompt. But when I issue a PHP connect command and run the PHP page on my browser, I'm unable to connect. All other PHP scripts work fine.
Here is my code:
<?php
mysql_connect("localhost", "root", "mypassword") or die(mysql_error());
echo "Connected to MySQL";
?>
Here is my code:
<?php
mysql_connect("localhost", "root", "mypassword") or die(mysql_error());
echo "Connected to MySQL";
?>