How do i prevent printing "Warning" bit of connection error? I only want see my error message on screen.

Note: I deliberetly enter wrong Host IP to see the message thou.

Warning: mysql_connect() [function.mysql-connect]: Host '' is not allowed to connect to this MySQL server in C:\apache\login\database.php on line 3
ERROR: Server connection error;
$conn = mysql_connect(self::DBSRV, self::DBUID, self::DBPSW);
die("ERROR: Server connection error;");


Just got a message from different forum and solved. I didn't know it could be this simple.

Put @ before 'mysql_connect'