PHP Example
Screen shot
PHP Script to Delete Multiple Record
<?php
$con=mysql_connect(\"localhost\",\"root\",\"\")or die(\"mysql not connected\");
$db=mysql_select_db(\"promofix\",$con)or die(\"database not connected\");

if(isset($_POST[\'btn\'])){
$con=mysql_connect(\"localhost\",\"root\",\"\")or die(\"dmysql not connected\");
$db=mysql_select_db(\"promofix\",$con)or die(\"database not connected\");
  
    if(isset($_POST[\'chk\'])){
    $count=$_POST[\'chk\'];
    $s=count($count);
    for($i=0;$i<=$s;$i++){   
    $query=\"DELETE FROM multiple_record WHERE id IN (\'$count[$i]\') ;\";
    $result=mysql_query($query);
    }
  
    if($result){
    $msg=\"(\".$s.\")\".\" Record Deleted Successfully\";
    }
  
    }
}
?>   
<html>
<head>
<title>multiple record deletion</title>
</head>
<body>
<form name=\"frm\" action=\"\" method=\"post\">
<?php
$query=\"select * from multiple_record\";
$data=mysql_query($query);?>
<table align=\"center\" width=\"50%\" border=\"1\">
<tr>
<td align=\"center\" colspan=\"7\"><?php if(isset($msg)){ echo $msg; unset($msg); }?></td>
</tr>
<tr bgcolor=\"#EBEBEB\">
<td>id</td>
<td>usename</td>
<td>email_id</td>
<td>city</td>
<td>delete</td>
</tr>
<?php
while($result=mysql_fetch_array($data))
{?>
<tr>
<td><?php echo $result[0];?></td>
<td><?php echo $result[1];?></td>
<td><?php echo $result[2];?></td>
<td><?php echo $result[3];?></td>
<td><input type=\"checkbox\" name=\"chk[]\" value=\"<?php echo $result[0];?>\"/></td>
</tr>
<?php
}
?>
<tr>
<td align=\"right\" colspan=\"5\"><input type=\"submit\" name=\"btn\" value=\"delete\"></td>
</tr>
</table>
</form>
</body>
</html>

You can download source code here