* Thus wrote Albert Padley ([EMAIL PROTECTED]):
>
> <input type=\"checkbox\" name=\"del[]\" value=\"" . $row['id'] . "\">
>
> The processing code is:
>
> if (count($del) > 0){
> for ($i=0;$i<count($del);$i++){
>
> $query = "DELETE FROM ref_events_reg WHERE id = '$del[$i]'";
> }
> }
I think you need to take a step back and figure out where the $del
variable is comming from.
Both solutions that have been provided should have worked if $del
was really an array.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php