I know somebody may thinking "hey I've heard this before". It's true I can't connect to mysql using PHP.
The error message I get after taking for ever to run the results back to me.
MySQL Connection Failed: Lost connection to MYSQL server during query in dbconnect.php on line 2
Fatal error: Maximum execution time of 30 seconds exceeded in dbconnect.php on line 2
eg..(dbconnect.php)
<?php
mysql_connect("localhost", "myusername","mypassword") or
die($php_errormsg);
print "Connected successfully";
mysql_select_db("guestbook") or
die ("Could not select database")
?>
I'm running this on a local machine using apache,XP,PHP4 and MYSQL. I have php4 installed using the modules I'm using port 80 I run the phpinfo() and it reads back everthing meaning PHP works. MY server (Apache) is running smoothly under windows surprisingly. I've been stuck for about 3 days Is starting to frustrate me. Please help I searched everwhere. Just think what I went through to get this far never even seeing a unix box before in my life?