A link to deleted records via select checkboxes
Posted: Tue May 31, 2011 7:53 am
I have this code that allows me to select any check box and hit the delete button and it removes the records from the database however i wanna make it a link instead OR make my compose and Delete a image but nothing I do works out.
Here is the code
as you see the button is a submit and i would like to make this all work either with link or image.
Someone please help me out i am sure the images can be done at least
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