'.$res[courseCatName].'

'; }else{ echo '

'.$res[courseCatName].'

'; $cat_qry_sub="select * from tbl_course_cat where courseParentID='$res[courseCatID]' and status='Y' order by disp_order"; $qry_sub=mysql_query($cat_qry_sub); while ($res_sub=mysql_fetch_array($qry_sub)) { $count_sub=getCount("tbl_course_cat","where courseParentID='$res_sub[courseCatID]' and status='Y'"); echo '

'.$res_sub[courseCatName].'

'; } } } ?>