how to Deleting multiple rows in datagrid using checkbox
not in gridview .....pls give solution
how to Deleting multiple rows in datagrid using checkbox
not in gridview .....pls give solution
Have you check this tutorial Selecting, Confirming & Deleting Multiple Checkbox Items In A DataGrid?
$action = $_GET["action"]; if($action == "delete") { $usersToDelete = ""; foreach ($_REQUEST['checkbox'] as $id) { if($usersToDelete == "") { $usersToDelete = "'" . $id . "'"; } else { $usersToDelete = $usersToDelete . ",'" . $id . "'"; } } $sql = "DELETE FROM table_name WHERE id in ($usersToDelete)";
mysql_query($sql) or die('Error: ' . mysql_error());
} ob_end_flush();