0) { while ($set_user = mysqli_fetch_assoc($get_user)){ array_push($disc_arr, $set_user['user_id']); } } $get_disc = mysqli_query($conn, "SELECT discount FROM shop_user where user_id='$dealer_id'"); $set_disc = mysqli_fetch_assoc($get_disc); $disc = $set_disc['discount']; $arr = array("11363"); if(in_array($dealer_id, $disc_arr)){ ?>




Contact:
Order Id :
Date :
0){ while($set_dist=mysqli_fetch_assoc($get_dist)){ $get_ref = mysqli_query($conn, "SELECT * FROM tbl_confirmorder where orderid='".$set_dist['ref_id']."'"); $set_ref = mysqli_fetch_assoc($get_ref); $get_tot = mysqli_query($conn, "SELECT sum(totprice) as totprice FROM tbl_order where orderid='".$set_dist['ref_id']."'"); $set_tot = mysqli_fetch_assoc($get_tot); echo $set_ref['refid'].' = '.$set_tot['totprice'].'
'; } } ?>

ANBU PHAARMAA

>
# Product Content Rate Qty Total
TOTAL:
% DISCOUNT:
NET TOTAL:

ENERGY FOODS

>
# Product Content Rate Qty Total
TOTAL:
% DISCOUNT:
NET TOTAL:




Contact:
Order Id :
Date :
0){ while($set_dist=mysqli_fetch_assoc($get_dist)){ $get_ref = mysqli_query($conn, "SELECT * FROM tbl_confirmorder where orderid='".$set_dist['ref_id']."'"); $set_ref = mysqli_fetch_assoc($get_ref); $get_tot = mysqli_query($conn, "SELECT sum(totprice) as totprice FROM tbl_order where orderid='".$set_dist['ref_id']."'"); $set_tot = mysqli_fetch_assoc($get_tot); echo $set_ref['refid'].' = '.$set_tot['totprice'].'
'; } } ?>

ANBU PHAARMAA

>
# Product Content Rate Qty Total
TOTAL:

ENERGY FOODS

>
# Product Content Rate Qty Total
TOTAL:




Contact:
Order Id :
Date :
0){ while($set_dist=mysqli_fetch_assoc($get_dist)){ $get_ref = mysqli_query($conn, "SELECT * FROM tbl_confirmorder where orderid='".$set_dist['ref_id']."'"); $set_ref = mysqli_fetch_assoc($get_ref); $get_tot = mysqli_query($conn, "SELECT sum(totprice) as totprice FROM tbl_order where orderid='".$set_dist['ref_id']."'"); $set_tot = mysqli_fetch_assoc($get_tot); echo $set_ref['refid'].' = '.$set_tot['totprice'].'
'; } } ?>

ANBU PHAARMAA

>
# Product Content Rate Qty Total
TOTAL:

ENERGY FOODS

>
# Product Content Rate Qty Total
TOTAL: