Hi, I've got a code that echos out every row of the database with a checkbox next to it.
$result = mysqli_query($database, "SELECT * FROM $imei_to_look_for" );
while ( $row = mysqli_fetch_array($result) ) {
echo htmlspecialchars($imei_to_look_for).
"<input type='checkbox' value='$row[event_number]' name='todelete[]' />";
and another, that should loop throught all checked checkboxes.
foreach ( $_POST['todelete'] as $delete_id ) { ...
yet it gives an "Invalid argument supplied for foreach()" error.
Any suggestions? Thanks!