1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| //删除选定状态 if($dopost=="del") { $ids = explode('-',$ids); $dquery = ""; foreach($ids as $id) { if($dquery=="") { $dquery .= "id='$id' "; } else { $dquery .= " OR id='$id' "; } } if($dquery!="") $dquery = " WHERE ".$dquery; $dsql->ExecuteNoneQuery("DELETE FROM cr_member_activation $dquery"); ShowMsg("成功删除指定的记录!","./index.php"); exit(); }
|