function __post2($id, $def = '') { $vl = $_POST[$id] != '' ? $_POST[$id] : $_GET[$id]; if (!isset($id) || $id == '') { $vl = $def; } return anti_post($vl); }
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; }
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; }