I want to hide all mysql error messages without using mysql_error()
.
Are there any solutions?
Yes you can add @
before all mysql queries.
example:
$result = @mysql_db_query ("database","SELECT * FROM agents WHERE ID = '$id'");
First line of code before any function in your php script
error_reporting(0);
Put @
in front of your mysql_query
call (@mysql_query('some query');
) to suppress the error messages.