 <?php
session_start();
require_once('includes/config.php'); 
$tablename=$_POST['table'];
$id=$_POST['id'];
if(is_array($id)){
$ids  = implode(',',$id);
$sql="DELETE FROM ".$tablename." WHERE `id` IN($ids)";
$con->query($sql);
}
?>			