include("lib/db.php"); ?>
 include("lib/app-top.php"); ?>
 include("lib/functions.php"); ?>
 include("inc/page-top.php"); ?>
/* Get info for this item */
$i = $_GET['i'];
$n = $_GET['n'];
$prod_name = ucwords(str_replace("-"," ",$n));
//Get Prod
$get_prod = $conn->prepare("SELECT * FROM `stock` WHERE `id` = :prod_id AND `status` < 1 ");
$get_prod->bindParam(":prod_id",$i);
//Get Range
$get_range = $conn->prepare("SELECT `id`,`name` FROM `ranges` WHERE `id` = :r_id ");
$get_range->bindParam(":r_id",$range_id);
//Temp info.
//Get the product info
$get_prod->execute();
$row = $get_prod->fetch(PDO::FETCH_ASSOC);
$prod_id = $row['id'];
$prod_name = $row['name'];
$prod_desc = $row['description'];
$prod_img_arr = explode(",",$row['images']);
$prod_img = $prod_img_arr[0];
if($prod_img == false) {
  $prod_img = "/img/no-pic.jpg";
}
$prod_thu = str_replace("/media/","/media-thu/",$prod_img);
$range_ids_arr = explode(",",$row['range_ids']);
$range_id = $range_ids_arr[0];
$prod_url = "/product/".nice_url($prod_name)."/";
// Get range info.
$get_range->execute();
$row2 = $get_range->fetch(PDO::FETCH_ASSOC);
$rang_name = $row2['name'];
$rang_url = "/range/".nice_url($rang_name)."/";
?>
 $cur = "products"; ?>
 $page_title = $prod_name; ?>
 $page_subtitle = $prod_name; ?>
   ⋮  ⋮ 
  
   include("inc/meta.php"); ?>
  
    
       include("inc/nav.php"); ?>
       $crumbs_str = "
 Products $rang_name $prod_name";
      include("inc/sub-hdr.php"); ?>
      
        
          
            
              
              
                ![]()
 /*
                
                  
                     | Attribute |  Value |  
                  
                  
                    | accumsan at tellus eget |  xxxxx |  
                    | accumsan at tellus eget |  xxxxx |  
                    | accumsan at tellus eget |  xxxxx |  
                    | accumsan at tellus eget |  xxxxx |  
                    | accumsan at tellus eget |  xxxxx |  
                    | accumsan at tellus eget |  xxxxx |  
                   
                  */?>
                  
                  
                   
                 
               
            
           
         
       
       include("inc/after-wrapper.php"); ?>
       include("inc/ftr.php")?>
       include("inc/infra.php")?>
       include("inc/page-btm.php")?>