sql injection in php?

Dave

New member
if(@mysql_result(@mysql_query("SELECT * FROM `master` WHERE `numer` LIKE '$_GET[number]' LIMIT 0 , 5 "),0,"email") !="")

is it prone to sql injection???
 
If I enter %'# into your form, the query would turn into: SELECT * FROM `master` WHERE `numer` LIKE '%'

That may return all the records in your table. Try it.

The pound symbol indicates a SQL comment, so any syntax after it will become a comment.
 
Back
Top