projects
/
hmb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b394216
)
Query Correct Table
author
Richard Whitehouse
<richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:17:39 +0000
(23:17 +0000)
committer
Richard Whitehouse
<richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:17:39 +0000
(23:17 +0000)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index d108eb2ee9e52c8cae203b34dbe80fffcfdbac86..451c37ec2a33aac76bc6c7b173621ad5e8a1a9f2 100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-262,7
+262,7
@@
class Purchase {
if($order instanceof Type){
$order = $order->id();
}
- $query = 'SELECT `id`,`ticket`,`order`,`price`,`name` FROM `
order
` WHERE `order` = ?';
+ $query = 'SELECT `id`,`ticket`,`order`,`price`,`name` FROM `
purchase
` WHERE `order` = ?';
$stmt = Ticketing::Get()->database()->prepare($query);
$stmt->bind_param('i', $order);
$stmt->execute();