Tips: PHP security
View Single Post
09-13-2007, 02:47 PM
La Vida es Sueño
Join Date: Sep 2007
Are you sure about that Village Idiot? I'm fairly sure if the
typecasting is unable to wither the string down to an integer, it will leave you with zero
. In addition to Jordie's comment, which is spot on, you may also use sprintf as well. Like so:
"update ... where id=%d"
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
View Public Profile
Send a private message to Wildhoney
Visit Wildhoney's homepage!
Find More Posts by Wildhoney