I've created a simple table and php codes to inject it : here is my php codes :
<?php
$link = mysql_connect("localhost","root","");
mysql_select_db("test",$link);
$id = @$_GET["id"];
if($id != ""){
mysql_query("delete from students where id=" .$id,$link);
}
?>
As id in link bar I intered :
1 ; drop table students ;
But it didn't work. What is the problem ? thanks