Can not delete a row in PHP

General discussion on technical and managerial topics
no avatar
subratmca85
 
Posts: 2
Joined: Wed Mar 20, 2013 12:51 pm

Can not delete a row in PHP

by subratmca85 » Wed Apr 03, 2013 3:48 pm

Here is the codes:
<?php
//error_reporting(0);

$id = $_GET['id'];

$sql= "delete * From student WHERE rollno=$id";

if(!mysqli_query($con,$sql))
{
die('Deletion failed...Please try again.'. mysqli_error());
}
else
{
echo "Record deleted successfully";
}
?>
Please help...

Return to General Discussion