View Single Post
Old 29th December 2009, 16:42
Ben Ben is offline
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts

Sorry that I have not seen this post earlier

Anyhow your former problem was based on the operator precedence:

the same with 1+2*3 != (1+2)*3 -> 7 vs. 9

And don't forget about escaping and verifying the userinput before performing the queries (and normally the DB extracted input for further DB related operations as well)
Reply With Quote