I’m using wamp server 2.0 and though phpmyadmin is working and phpinfo() shows mysqli and mysql I cannot establish a connection to mysql using the following script:
$link = mysql_connect('localhost','root','********');
if (!$link){
die('Unable to connect to the MySQL server<br /><br />'.mysql_error());
}
echo 'Connection Successful';