I used the following code...but even then i got the error message ...
code
<?php
$user="u";$host="h";$password="p";
$c = mysql_connect($host,$user,$password);
if($c)
{
echo("Connected");
}
else
{
echo("No connection");
}
?>
After 2 or 3 minutes i get the following error.
Warning: Can't connect to MySQL server on 'h' (145) in /home/users/www/test.php on line 3
Warning: MySQL Connection Failed: Can't connect to MySQL server on 'h' (145) in /home/users/www/test.php on line 3
No connection
Is there a way not to print Warning?
Thanks