Thread: SQL Injection
View Single Post
Old 06-26-2008, 09:59 AM   #9 (permalink)
maZtah
The Acquainted
 
Join Date: Oct 2007
Posts: 126
Thanks: 12
maZtah is an unknown quantity at this point
Default

Quote:
Originally Posted by drewbee View Post
Yeah, I know you don't have to put quotes around integer values. For some reason, I always have. Not sure why. Just one of those things I started doing and formed a habit around it. Is there any actual benefit to not using quotes around numeric values?
For me it's just about "correct" coding, a string is a string, and a integer is an integer. I have no idea if there's any benefit if you're putting quotes around it or not. Though, logically it's more correct (to me).
maZtah is offline  
Reply With Quote