mirror of
https://github.com/Solo-Web-Works/BillTrak.git
synced 2026-01-29 08:40:34 +00:00
🐞 fix: Update comment handling
This commit is contained in:
@@ -10,15 +10,16 @@ class Bill {
|
|||||||
$db = DB::connect();
|
$db = DB::connect();
|
||||||
|
|
||||||
$stmt = $db->prepare("INSERT INTO bills
|
$stmt = $db->prepare("INSERT INTO bills
|
||||||
(billDate, billName, amount, paymentId, year)
|
(billDate, billName, amount, paymentId, year, comment)
|
||||||
VALUES (?, ?, ?, ?, ?)");
|
VALUES (?, ?, ?, ?, ?, ?)");
|
||||||
|
|
||||||
return $stmt->execute([
|
return $stmt->execute([
|
||||||
$data['date'],
|
$data['date'],
|
||||||
$data['billName'],
|
$data['billName'],
|
||||||
$data['amount'],
|
$data['amount'],
|
||||||
$data['paymentId'],
|
$data['paymentId'],
|
||||||
$data['year']
|
$data['year'],
|
||||||
|
$data['comment']
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user