Your IP : 216.73.216.26


Current Path : /home2/wtmwscom/public_html/admin/
Upload File :
Current File : /home2/wtmwscom/public_html/admin/get_product_detail.php

<?php 
include '../connection.php';
$pid = $_GET['pid'];
$html = '';
$result = mysqli_query($connection, "Select * from product where pid = $pid");
$row = mysqli_fetch_object($result);
    $quantity = $row->quantity;
    $html = $html.'<div style="color:green">P code '. $row->pcode .'<br/> MRP '.$row->mrp.'<br/> PV '.$row->pv.'<br/> Qty. Avail '.$row->quantity.'</div>';

$data = array('quantity'=>$quantity, 'html'=>$html);
echo json_encode($data);
?>