0) { # code... while ($row=mysqli_fetch_array($query)) { $product_id[] = $row["p_id"]; $qty[] = $row["qty"]; } for ($i=0; $i < count($product_id); $i++) { $sql = "INSERT INTO orders (user_id,product_id,qty,trx_id,p_status) VALUES ('$cm_user_id','".$product_id[$i]."','".$qty[$i]."','$trx_id','$p_st')"; mysqli_query($con,$sql); } $sql = "DELETE FROM cart WHERE user_id = '$cm_user_id'"; if (mysqli_query($con,$sql)) { ?> Khan Store




Thankyou


Hello ".$_SESSION["name"].""; ?>,Your payment process is successfully completed and your Transaction id is
you can continue your Shopping

Continue Shopping