Preventing mysqli errors from showing
View Single Post
05-18-2009, 01:26 PM
Join Date: Oct 2007
Location: Manchester, UK
Note to self:
Type quicker next time so that sketchMedia doesn't beat me to it. Git!
A good point in your post:
You can suppress errors, although it's not recommended, by adding an @ symbol in front of the function:
Indeed its not recommended, having to grep through code to find those pesky things when your script is just quietly falling over is a tedious task at best!
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
View Public Profile
Send a private message to sketchMedia
Visit sketchMedia's homepage!
Find More Posts by sketchMedia