I want to delete values that has been selected using checkbox. I am using this script though its not giving any error but its not working
please help it out.
Check the name of your delete button. $_POST['delete'] needs the name to be 'delete'.
$_POST['delete']
Also please check $del_id = $checkbox['$i']; It should be $del_id = $checkbox[$i];
$del_id = $checkbox['$i'];
$del_id = $checkbox[$i]
And for security sake
$sql = "DELETE FROM t_s_list WHERE s_id='".mysql_real_escape_string($del_id)."'";