php - How to HIDE mySQL error from displaying at interface? -


i have error in webpage.

you have error in sql syntax; check manual corresponds mysql server version right syntax use near 'like ''' @ line 1

however, want ignore error because not influence output. therefore, want hide error displaying on user side.

i tried use code error_reporting(e_all ^ e_notice);to hide error, can hide "notice" error.

any suggestion / solution hide above error?

theoretically, can use "@" sign before function call prevent showing errors. example,

$result = @$mysqli->query($query); 

but suggest fixing error.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -