Thread
:
sql injection prevention advice
View Single Post
09-20-2010, 04:11 PM
rowan
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Quick tip: if the value you're expecting should be an integer, you can force PHP to treat it as such like this:
$val =
0 +
$_POST["variable"];
rowan
View Public Profile
Visit rowan's homepage!
Find More Posts by rowan