i doing the PHP Connection test with Mysql~ Here is the coding, <?php // hostname or ip of server (for local testing, localhost should work) $dbServer='localhost'; // username and password to log onto db server $dbUser='root'; $dbPass=''; // name of database $dbName='test'; $link = mysql_connect("$dbServer", "$dbUser", "$dbPass") or die("Could not connect"); print "Connected successfully<br>"; mysql_select_db("$dbName") or die("Could not select database"); print "Database selected successfully<br>"; // close connection mysql_close($link); ?> I received this error, Fatal error: Call to undefined function mysql_connect() in D:\public_html\phpconection.php on line 12 Any wrong code on line 12?
This indicates that there is no MySQL support in your PHP installation? Did you install and enable the PHP-MySQL module?