From: Richard Whitehouse Date: Fri, 4 Feb 2011 18:42:42 +0000 (+0000) Subject: Fixed mysql bind bug X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=46e81d3b499023166da470fbf74498567fac05df;p=hmb.git Fixed mysql bind bug --- 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);