delete_value('staff_new_report_count'); } elseif ($_POST['delete']){ $res = sql_query ("SELECT id FROM reports WHERE id IN (" . implode(", ", $_POST['delreport']) . ")"); while ($arr = mysql_fetch_assoc($res)) sql_query ("DELETE from reports WHERE id = {$arr['id']}") or sqlerr(); $Cache->delete_value('staff_new_report_count'); $Cache->delete_value('staff_report_count'); } header("Location: reports.php");