hi, thanks for your reply, i have tried this
<?php
$link = mysql_connect('localhost', 'root', '') or die('error connecting:'.mysql_error());
echo 'Connected successfully';
mysql_close($link);
?>
but still doesnot work, i think u r right, die()stops all code underneath it from executing. is...
Dear all, i have the first problem when i try to testmysql_connect, the codes is as following:
<?php
$link = mysql_connect('localhost', 'root', '');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
but the browser cannot...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.