-
Notifications
You must be signed in to change notification settings - Fork 9
/
get_pde.php
32 lines (25 loc) · 1.17 KB
/
get_pde.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
require 'config.php';
$grp = $_POST['cat'];
$firm = $_POST['firm'];
$type = $_POST['size'];
$count = $_POST['count'];
$conn = connection();
$sql = "SELECT * FROM product WHERE pro_typeid =$type AND pro_grpid = $grp AND pro_firmid = $firm";
$data = $conn->query($sql);
$conn=null;
?>
<?php foreach ($data as $row) { ?>
<?php //if ($row['pro_qty']>0) { ?>
<!-- Available :<?php echo $row['pro_qty']; ?><br>
<input type="hidden" name="av_<?php echo $count; ?>" id="av_<?php echo $count; ?>" value="<?php echo $row['pro_qty']; ?>"> -->
<!-- Price : --><?php echo $row['pro_price']; ?><br>
<input type="hidden" name="p_<?php echo $count; ?>" id="p_<?php echo $count; ?>" value="<?php echo $row['pro_price']; ?>">
<input type="hidden" name="p_cgst_<?php echo $count; ?>" id="p_cgst_<?php echo $count; ?>" value="<?php echo $row['cgst']; ?>">
<input type="hidden" name="p_igst_<?php echo $count; ?>" id="p_igst_<?php echo $count; ?>" value="<?php echo $row['igst']; ?>">
<input type="hidden" name="p_sgst_<?php echo $count; ?>" id="p_sgst_<?php echo $count; ?>" value="<?php echo $row['sgst']; ?>">
<?php //}else {
//echo "OUT OF STOCK";
//} ?>
</td>
<?php break; } ?>