Hi all !
Is there a possibilty to suppress the print of warnings ?!
For example I want to connect to a database - and when the connection couldn't be established, I want to return an Error Message like
"No connection at the moment - please try again later.!"
But I always get these MYSQL-Warnings like "Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in inc/connect.php3 on line 9". And after that warning my error message appears.
My Code is like that:
$db = mysql_connect($hostname,$user,$password) or die ("Could not connect");
Thx for help !
Is there a possibilty to suppress the print of warnings ?!
For example I want to connect to a database - and when the connection couldn't be established, I want to return an Error Message like
"No connection at the moment - please try again later.!"
But I always get these MYSQL-Warnings like "Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in inc/connect.php3 on line 9". And after that warning my error message appears.
My Code is like that:
$db = mysql_connect($hostname,$user,$password) or die ("Could not connect");
Thx for help !