hi guys, please help me out on this issue.
i had this code to connect to mysql using php but there is no any message displayed.
nothing is displayed on the screen, whether the connection is successful or there is an error.
any ideas?
i can connect to mysql using command prompt without a problem, but through this code below nothing is displayed on the screen.
any help is greatly appreciated.
<html>
<body>
<?php
$link = mysql_connect('localhost', 'my_username', 'my_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
</body>
</html>