$checkbox = isset($_REQUEST['checkbox']);
$countaa = count($checkbox);
You have set
$checkbox
to the boolean value returned by
isset()
, so
count($checkbox)
and
$checkbox[$i]
make no sense. You probably meant to set it to
$_REQUEST['checkbox']
.
Also, watch out for SQL injection - don't put
$del_id
in your query without escaping it first.