get_results("select cat_id, count(cat_id) as totals from ".AM_HILI_LINKS." where cat_id > 0 group by cat_id ASC");
if ($am_hili_afi_totals){
foreach ($am_hili_afi_totals as $am_hili_tatal_value){
$am_hili_totals[$am_hili_tatal_value->cat_id] = $am_hili_tatal_value->totals;
}
}
//getting list of link categories
$am_hili_cat_rows = $wpdb->get_results("select * from ".AM_HILI_CATEGORIES);
if ($am_hili_cat_rows){
foreach ($am_hili_cat_rows as $am_hili_cat_value){
$am_nr++;
if ($am_tr_class == "alternate")
$am_tr_class = "";
else
$am_tr_class = "alternate";
?>