function GetCatItemHistory($cat_id, $uid, $preparse = true) { $table = $this->GetSupportTableByCatID($cat_id); $arr = arr_from_ret_query(db_select($table, array('*'), "`uid`={$uid}", 'ORDER BY `timestamp` DESC')); if ($preparse) { $arr = $this->ParseDataArr($cat_id, $arr); } return $arr; }
function GetAllTags() { $t = db_query('SELECT `tag` FROM `tester_tags_dict` ORDER BY `tag`'); return arr_from_ret_query($t, 'tag'); }
function arr_from_query($query, $field = '') { $q = db_query($query); return arr_from_ret_query($q, $field); }