mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 08:53:23 -05:00
Fixes a bug introduced by adding datetime with enh #26.
* links for shop_log weren't opening up the latest shop, or any shop.
This commit is contained in:
parent
104de44dc5
commit
52069d9b52
@ -794,7 +794,7 @@ function current_shop_by_ip(){
|
||||
$current_date = current_date();
|
||||
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
$query_Recordset1 = "SELECT shop_id FROM shops WHERE ip_address = '{$IP}' AND date = '{$current_date}' ORDER BY shop_id DESC;";
|
||||
$query_Recordset1 = "SELECT shop_id FROM shops WHERE ip_address = '{$IP}' AND date REGEXP '^{$current_date} ' ORDER BY shop_id DESC;";
|
||||
$Recordset1 = mysql_query($query_Recordset1, $YBDB) or die(mysql_error());
|
||||
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
|
||||
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user