%PDF- %PDF-
Direktori : /home/medipszd/www/admin/ |
Current File : /home/medipszd/www/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); } ?>