Browse Source

Fixes a bug introduced by adding datetime with enh #26.

* links for shop_log weren't opening up the latest shop, or any shop.
devel
Jonathan Rosenbaum 7 years ago
parent
commit
52069d9b52
  1. 2
      Connections/database_functions.php

2
Connections/database_functions.php

@ -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…
Cancel
Save