示例#1
0
function __post2($id, $def = '')
{
    $vl = $_POST[$id] != '' ? $_POST[$id] : $_GET[$id];
    if (!isset($id) || $id == '') {
        $vl = $def;
    }
    return anti_post($vl);
}
示例#2
0
 function form_delete($id)
 {
     $sSQL = "update ntk_hospital set status = -13 where id in(" . anti_post($id) . ") ";
     $result = $this->db->query($sSQL, true, "Query failed");
     $aR = $this->db->fetchByAssoc($result);
     return 1;
 }
示例#3
0
 function form_delete($id, $status = -13)
 {
     $sSQL = "update ntk_forum_comments set status = " . (int) $status . " where comment_id in(" . anti_post($id) . ") ";
     $result = $this->db->query($sSQL, true, "Query failed");
     $aR = $this->db->fetchByAssoc($result);
     return 1;
 }