Here is the code
Code: Select all
$id = $_POST['del'];
$count = count($id);
if($_POST['justdel_x']){
for ($i=0; $i<$count; $i++)
{
$sql = mysql_query("update table SET deleted='1' where id=$id[$i]");
}
}
Code: Select all
<input type="submit" value="Delete" id="justdel_x" name="justdel_x" />
Someone please help me out i am sure the images can be done at least