Example #1
0
 /**
  * This function is used to show the main category 
  * 
  * 
  * @return string
  */
 function showMainCategory()
 {
     $query = new Bin_Query();
     $sql = "SELECT category_name, category_id,category_image FROM `category_table` WHERE category_parent_id =0 AND category_status =1 ORDER BY category_name ASC";
     if ($query->executeQuery($sql)) {
         $output = Display_DFeaturedItems::showMainCategory($query->records);
     } else {
         $output = 'No Main Category Listed';
     }
     return $output;
 }