I am getting this error - it was work fine but i have just swapped server and now the following error message is appearing:
Warning: Variable passed to each() is not an array or object in /content/DesignerPlus/p/r/promo-direct.co.uk/web/admin/order/add.php on line 54
line 54:
while (list($key, $val) = each($_POST[remove])) {
$query = " DELETE FROM promo_items
WHERE id = '$val'
";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
}
html:
<input type="checkbox" name="remove[]" value="<?php echo $rowBasket->iid ; ?>" />
please help thank you