I am trying to delete record through id here is my code:
if(isset($_GET['del'])){
$i=$_GET['a'];
$q="DELETE FROM Registration WHERE ID='".$i."'";
mysql_query($q,$conn) or die(mysql_error());
echo "deleted";
}
above code is working and echo statement is executed too but the record from database is not deleting. But when i put actual id num instead of $i, the record gets deleted.