public function getFullPath($product_id) { $query = $this->db->query("SELECT COUNT(product_id) AS total, category_id as catid FROM " . DB_PREFIX . "product_to_category WHERE product_id = '" . (int)$product_id . "'"); if ($query->row['total'] >= 1) { $path = array(); $path[0] = $query->row['catid']; $query = $this->db->query("SELECT parent_id AS pid FROM " . DB_PREFIX . "category WHERE category_id = '" . (int)$path[0] . "'"); $parent_id = $query->row['pid']; $i = 1; while($parent_id > 0) { $path[$i] = $parent_id; $query = $this->db->query("SELECT parent_id AS pid FROM " . DB_PREFIX . "category WHERE category_id = '" . (int)$parent_id . "'"); $parent_id = $query->row['pid']; $i++; } $path = array_reverse($path); $fullpath = ''; foreach($path as $val){ $fullpath .= '_'.$val; } return ltrim($fullpath, '_'); } else { return false; } } Types of Solar Energy
  • Miami:(786) 565-9359 / (786) 565-9368
  •   (786) 955-6027 / (786) 955-6147
  •   (786) 955-6198 / (305) 816-6181
  •   (305) 816-6239
  • Phoenix: (623) 849-1338
  • Address: 16725 NW 20th Ave,
    Miami Gardens, FL 33056

Types of Solar Energy

Solar Energy is not only used to produce electricity, there are variety of technologies to use solar energy, some of those are: