query($sql); $count++; } } $updated = 1; } if ($bthDelete) { if (!empty($selectRecord)) { foreach ($selectRecord as $key => $value) { $sql = "DELETE FROM `".$page_tbname."` WHERE `id` = '$value'"; $db->query($sql); //del_all_attachment($page_tbname,$value); } } $updated = 2; } header("Location: ".$page_address_list."?keepSession=1&page=$page&updated=".$updated); exit; ?>