News for hackers. Stuff that matters.
Re:Exploiting hard filtered SQL Injections by Jach on Sunday March 21, 2010 @11:45PM (#1209240)
Casting the ID to an int (like you should do) will make any non-numeric strings into 0. If your ID is 0 you can assume an attack and give such a message. With PHP you should be using mysqli_ functions instead of mysql_ variants as they protect against multiple queries executing in one mysqli_query() call.

I do agree prepared statements are the way to go at least 90% of the time.

There are no comments on this comment yet.