Example #1
0
 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;
 }
Example #2
0
 function GetAllTags()
 {
     $t = db_query('SELECT `tag` FROM `tester_tags_dict` ORDER BY `tag`');
     return arr_from_ret_query($t, 'tag');
 }
Example #3
0
 function arr_from_query($query, $field = '')
 {
     $q = db_query($query);
     return arr_from_ret_query($q, $field);
 }