From 46e81d3b499023166da470fbf74498567fac05df Mon Sep 17 00:00:00 2001 From: Richard Whitehouse Date: Fri, 4 Feb 2011 18:42:42 +0000 Subject: [PATCH] Fixed mysql bind bug --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 375f6b4..eecc013 100644 --- a/index.php +++ b/index.php @@ -252,7 +252,7 @@ class Purchase { $ticket = Ticket::Allocate_Available($type); $query = 'INSERT INTO `purchase` SET `order` = ?, `ticket` = ?, `price` = ?, `name` = ?'; $stmt = Ticketing::Get()->database()->prepare($query); - $stmt->bind_param('iiiis', $order->id(), $ticket->id(), $type->price(), $name); + $stmt->bind_param('iiis', $order->id(), $ticket->id(), $type->price(), $name); $stmt->execute(); $purchase = new Purchase($stmt->insert_id, $order->id(), $ticket->id(), $type->price(), $name); -- 2.34.1