All pastes #896415 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-08 17:05 UTC
rendered paste body
while (list($key, $val) = each($_POST['delete'])) {
$query = "DELETE FROM sb1 WHERE date = '" . $val . "'";
$shout_res = db_res ( $query );
}


this is generating:  Warning*: Variable passed to each() is not an array or object in *