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