Commit b001a9c3 authored by Faris Rizki Ekananda's avatar Faris Rizki Ekananda 💬
Browse files

buy chocolate pdo

parent 5ea09986
Pipeline #28539 canceled with stages
......@@ -34,6 +34,7 @@ if($_SERVER["REQUEST_METHOD"] === "POST"){
$time = date("Y-m-d H:i:s");
$sql = "INSERT transactions VALUES (:username, :chocolate_id, :amount, :totalprice, :address, :time)";
$pdo = $connect_db();
$stmt = $pdo->prepare($sql);
$stmt->bindParams(':username', $username);
Supports Markdown
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