mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 17:03:22 -05:00
CanEdit now proper for change from date to datetime.
This commit is contained in:
parent
463a54a951
commit
68061f3408
@ -52,7 +52,7 @@ $editFormAction = $_SERVER['PHP_SELF'] . "?shop_date=$shop_date&shop_id=$shop_id
|
||||
$editFormAction_no_shopid = $_SERVER['PHP_SELF'] . "?shop_date=$shop_date";
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$query_Recordset1 = "SELECT shops.shop_id, date, DAYNAME(date) as day ,shop_location, shop_type, ip_address, IF(date = curdate(),1,0)
|
||||
$query_Recordset1 = "SELECT shops.shop_id, date, DAYNAME(date) as day ,shop_location, shop_type, ip_address, IF(SUBSTRING(date,1,10) = curdate(),1,0)
|
||||
AS CanEdit, COUNT(shop_visit_id) AS num_visitors, ROUND(SUM(HOUR(SUBTIME( TIME(time_out), TIME(time_in)))
|
||||
+ MINUTE(SUBTIME( TIME(time_out), TIME(time_in)))/60)) AS total_hours
|
||||
FROM shops LEFT JOIN shop_hours ON shops.shop_id = shop_hours.shop_id
|
||||
|
Loading…
x
Reference in New Issue
Block a user