i have few sql queries and when a users logged in it execute fine as that time that users will be having some id but when a guest clicks those links i am getting error and complete sql query is being shown which is a big security risk. i want to disable error reporting so i disabled error reporting in php.ini through whm
i am looking for some way to disable complete errors when i want.i know it can be done by adding @ at the beggining of mysql query but i dont want to add @ in all query i am looking for a simple solution through whm just disable and enable like.
here is my errors
QL query error!
Error infomation:
[SQL]
select * from `blacks` where bid= and uid=21329
[Error]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and uid=21329' at line 1