Fixed mysql bind bug
authorRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 18:42:42 +0000 (18:42 +0000)
committerRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 18:42:42 +0000 (18:42 +0000)
index.php

index 375f6b44f8d538db7a8d5aa72b5964e0c0e1163c..eecc013aca4cf099ea296056dca873055a3b149c 100644 (file)
--- 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);