function get_by_one($appid) { $field = 'app' . $appid; $data = $this->db->get_one("SELECT * FROM " . UC_DBTABLEPRE . "ucnotify WHERE " . UC::sqlMetadata($field) . "<'1' LIMIT 1"); return $data; }
function sqlSingle($array) { //Copyright (c) 2003-2103 phpwind $array = UC::escape($array, true); $str = ''; foreach ($array as $key => $val) { $str .= ($str ? ', ' : ' ') . UC::sqlMetadata($key) . '=' . $val; } return $str; }