0) { */ global $wpdb; $cat_id_qry = "SELECT cat_id from ".$wpdb->prefix."category_ids"; $rec = mysql_query($cat_id_qry); $list = array(); while($res = mysql_fetch_assoc($rec)) { $list[] = $res['cat_id']; } //print_r($list); $lists = implode(",",$list); if(count($list)>0) { $csql_rec = $wpdb->get_results("select * from ".$table_prefix."terms where name='Conditions'"); $init_letter = $_GET['R']; $sql_rec = $wpdb->get_results("select * from ".$table_prefix."terms wpt,".$table_prefix."term_taxonomy wptt where wpt.name like '".$init_letter."%' and wptt.taxonomy = 'category' and wpt.term_id = wptt.term_id and wpt.term_id not in(".$lists.")"); } else { $csql_rec = $wpdb->get_results("select * from ".$table_prefix."terms where name='Conditions'"); $init_letter = $_GET['R']; $sql_rec = $wpdb->get_results("select * from ".$table_prefix."terms wpt,".$table_prefix."term_taxonomy wptt where wpt.name like '".$init_letter."%' and wptt.taxonomy = 'category' and wpt.term_id = wptt.term_id"); } //echo "select * from ".$table_prefix."terms wpt,".$table_prefix."term_taxonomy wptt where wpt.name like '".$init_letter."%' and wptt.taxonomy = 'category' and wpt.term_id = wptt.term_id and wpt.term_id not in(".$lists.")"; //$sql_rec = $wpdb->get_results($sql); if(count($sql_rec) > 0) { foreach($sql_rec as $c_rec){ $ttid = $c_rec->term_taxonomy_id; $tid = $c_rec->term_id; $name = $c_rec->name; $description = $c_rec->description; $cat_link = $c_rec->term_id; ?> '; $line_div .= ''; $i++; ?>

60, 'hide_empty' => false )); echo "".$name.""; ?>

ID.' hjhjjhj'; endwhile; ?>