%PDF- %PDF-
Direktori : /home/medipszd/public_html/admin/ |
Current File : /home/medipszd/public_html/admin/cart_row.php |
<?php include 'includes/session.php'; if(isset($_POST['id'])){ $id = $_POST['id']; $conn = $pdo->open(); $stmt = $conn->prepare("SELECT *, cart.id AS cartid FROM cart LEFT JOIN products ON products.id=cart.product_id WHERE cart.id=:id"); $stmt->execute(['id'=>$id]); $row = $stmt->fetch(); $pdo->close(); echo json_encode($row); } ?>