Skip to content
Snippets Groups Projects
Commit 8471f016 authored by Bitha17's avatar Bitha17
Browse files

modify create

parent 0f58f993
No related merge requests found
...@@ -9,9 +9,7 @@ class PembelianModel { ...@@ -9,9 +9,7 @@ class PembelianModel {
global $db; global $db;
$stmt = $db->prepare("INSERT INTO pembelian (ticket_id, user_id, pembelian_created_time) VALUES (?, ?, ?)"); $stmt = $db->prepare("INSERT INTO pembelian (ticket_id, user_id, pembelian_created_time) VALUES (?, ?, ?)");
$stmt->execute([$ticketId, $userId, $createdTime]); return $stmt->execute([$ticketId, $userId, $createdTime]);
return "Pembelian created successfully";
} }
public function getPembelian($pembelianId) { public function getPembelian($pembelianId) {
......
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