<?php /* retrieve product details */ $array = getProductDetailsbyName($name); $x = 0; $bits = explode('.', $array[$x]['img']); ?> <img src="uploads/<?php echo $bits[0] . '_th.' . $bits[1]; ?> " alt="<?php echo $array[$x]['name']; ?> " /> <h3><a data-lightbox="<?php echo $array[$x]['name']; ?> " data-title="<?php echo $array[$x]['name']; ?> " href="uploads/<?php echo $bits[0] . '.' . $bits[1]; ?> ">ZOOM</a></h3>
<?php /* retrieve Item Description */ $result = getProductDetailsbyName($name); $x = 0; ?> <div class="col-sm-12"> <div class="product-description"> <div class="single-products"> <div class="productinfo"> <h2>Description</h2> <p><?php echo $result[$x]['description']; ?> </p> <p>Size : <?php echo $result[$x]['size']; ?> </p> <p>Warna : <?php echo $result[$x]['color']; ?> </p> </div> </div> </div> </div>