Welcome Guest, Not a member yet? Register   Sign In
Help to avoid sql injection attack
#1

[eluser]Unknown[/eluser]
would you please guide me to secure my query



here is the query
Quote:$id=$_GET['id'];
$sql="select title,picture,news from sport where id='$id'";
$result=mysql_query($sql,$db);



do u think its secure now


Quote:$id = mysql_real_escape_string($_GET['id']);


Messages In This Thread
Help to avoid sql injection attack - by El Forum - 08-06-2011, 07:48 PM
Help to avoid sql injection attack - by El Forum - 08-07-2011, 02:11 PM
Help to avoid sql injection attack - by El Forum - 08-07-2011, 07:27 PM
Help to avoid sql injection attack - by El Forum - 08-08-2011, 02:57 PM
Help to avoid sql injection attack - by El Forum - 08-08-2011, 08:09 PM
Help to avoid sql injection attack - by El Forum - 08-08-2011, 08:13 PM
Help to avoid sql injection attack - by El Forum - 08-08-2011, 08:25 PM
Help to avoid sql injection attack - by El Forum - 08-09-2011, 06:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB