From 77dad4e675de5f686b1eb13400408d52837ddf40 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Sun, 9 Feb 2025 09:43:26 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20Update=20comment=20handli?= =?UTF-8?q?ng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/bill.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/bill.php b/includes/bill.php index 8165d87..2d05ee0 100644 --- a/includes/bill.php +++ b/includes/bill.php @@ -10,15 +10,16 @@ class Bill { $db = DB::connect(); $stmt = $db->prepare("INSERT INTO bills - (billDate, billName, amount, paymentId, year) - VALUES (?, ?, ?, ?, ?)"); + (billDate, billName, amount, paymentId, year, comment) + VALUES (?, ?, ?, ?, ?, ?)"); return $stmt->execute([ $data['date'], $data['billName'], $data['amount'], $data['paymentId'], - $data['year'] + $data['year'], + $data['comment'] ]); }