projects
/
hmb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
117bee1
)
Fixed mysql bind bug
author
Richard Whitehouse
<richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 18:42:42 +0000
(18:42 +0000)
committer
Richard Whitehouse
<richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 18:42:42 +0000
(18:42 +0000)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/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('iii
i
s', $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);