Changeset 4668 for temp/trunk
- Timestamp:
- 2006/09/13 10:49:24 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/home.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/home.php
r4667 r4668 85 85 if ( $method == 'SUM' or $method == 'COUNT'){ 86 86 $sql = "SELECT ".$method."(total) FROM dtb_order 87 WHERE del_flg = 0 AND to_char(create_date,'YYYY/MM') = ?87 WHERE del_flg = 0 AND cast(substring(create_date,1,6) as date) = ? 88 88 AND cast(substring(create_date,1, 10) as date) <> cast(substring(now(),1, 10) as date)"; 89 89 $return = $conn->getOne($sql, array($month)); … … 136 136 $col.= "(SELECT det.product_name FROM dtb_order_detail AS det WHERE ord.order_id = det.order_id LIMIT 1) AS product_name, "; 137 137 $col.= "(SELECT pay.payment_method FROM dtb_payment AS pay WHERE ord.payment_id = pay.payment_id) AS payment_method, "; 138 $col.= " current_timestamp";138 $col.= "to_char(create_date, 'YYYY/MM/DD HH24:MI') AS create_date"; 139 139 $from = "dtb_order AS ord"; 140 140 $where = "del_flg = 0";
Note: See TracChangeset
for help on using the changeset viewer.
