Hi there guys!
To all PHP & MySQL Experts... please help!
Issue: My PHP can't connect to MySQL
OS: WinXP Prof SP2
Server: IIS
PHP: version 5.0 (uses CGI)
MySQL: version 5.0 (username: "root" & password: test)
PHP Side:
- I don't have any issues hard coding it or using it in DreamweaverMX
- I just can't connect to MySQL weather hard coding or configuring in DreamweaverMX!
MySQL Side:
- I can do anything in creating & administering databases on the command line
- This just don't want to cooperate with my PHP 5.0
Troubleshooting:
- Turn off all firewall/anti-virus/any software that's a possibility in blocking the connection
Error Code: "PHP Fatal error: Call to undefined function mysql_connect() in C:\Inetpub\wwwroot\PHPTest\test.php on line 7"
My dB connection code:
<?php
$con = mysql_connect("localhost","root","secret");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}// some code
?>
Standbye sa lang guys... Tnx daan ninyo!
But for now, if you have something in mind please do feel free to post your suggestions in troubleshooting this. Thanks again!
Be back...,
ForYou