0) { foreach ($_POST["i_id"] as $delId) { if (trim($delId) != "" && checkPInt($delId)) { DelContent($conn , $delId , $LT); }//end if } alert("已经成功删除"); } page_reload(); function DelContent(&$conn , $delId , $LT) { //查找并删除相应记录的文件 $sql = "select * from page2Content1 where id = " . $conn->qstr($delId); $rs = &$conn->Execute($sql); if (!$rs || $rs->EOF) { alert("数据库查询出错!"); page_reload(); exit(); } else { //删除记录 $sql = "delete from `page2Content1` where id = " . $conn->qstr($delId); $rs = &$conn->Execute($sql); if (!$rs){ alert("数据库查询出错!"); page_reload(); exit(); } } } //显示信息 function alert($show_info) { if (trim($show_info) == "") { return false; }//end if echo ""; return true; }//end if function page_reload() { echo ""; } ?>