- Timestamp:
- 2012/02/15 19:56:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_Order.php
r21481 r21514 91 91 //customer_idを検証 92 92 $customer_id = $objCustomer->getValue('customer_id'); 93 $order_count = $objQuery->count('dtb_order', "order_id = ? and customer_id = ?", array($order_id, $customer_id));93 $order_count = $objQuery->count('dtb_order', 'order_id = ? and customer_id = ?', array($order_id, $customer_id)); 94 94 if ($order_count != 1) return array(); 95 95 96 $col = "product_class_id, quantity";97 $table = "dtb_order_detail LEFT JOIN dtb_products_class USING(product_class_id)";98 $where = "order_id = ?";96 $col = 'product_class_id, quantity'; 97 $table = 'dtb_order_detail LEFT JOIN dtb_products_class USING(product_class_id)'; 98 $where = 'order_id = ?'; 99 99 $objQuery->setOrder('order_detail_id'); 100 100 $arrOrderDetail = $objQuery->select($col, $table, $where, array($order_id));
Note: See TracChangeset
for help on using the changeset viewer.