Commit d4d4541e authored by Faris Rizki Ekananda's avatar Faris Rizki Ekananda 💬

params fix

parent b001a9c3
Pipeline #28544 failed with stages
in 0 seconds
......@@ -37,12 +37,12 @@ if($_SERVER["REQUEST_METHOD"] === "POST"){
$pdo = $connect_db();
$stmt = $pdo->prepare($sql);
$stmt->bindParams(':username', $username);
$stmt->bindParams(':chocolate_id', $chocolate_id);
$stmt->bindParams(':amount', $amount);
$stmt->bindParams(':totalprice', $totalprice);
$stmt->bindParams(':address', $address);
$stmt->bindParams(':time', $time);
$stmt->bindParam(':username', $username);
$stmt->bindParam(':chocolate_id', $chocolate_id);
$stmt->bindParam(':amount', $amount);
$stmt->bindParam(':totalprice', $totalprice);
$stmt->bindParam(':address', $address);
$stmt->bindParam(':time', $time);
$stmt->execute();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment