Changeset 483 for trunk/includes/global_function.php
- Timestamp:
- Jun 18, 2010, 7:10:56 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global_function.php
r466 r483 551 551 { 552 552 $DbRow = $DbResult->fetch_assoc(); 553 $System->Database->query('UPDATE `Referrer` SET ` DateLast` = NOW(), `LastURL` = "'.addslashes($Referrer).'" WHERE `Id` = '.$DbRow['Id']);553 $System->Database->query('UPDATE `Referrer` SET `Hits` = `Hits` + 1, `DateLast` = NOW(), `LastURL` = "'.addslashes($Referrer).'" WHERE `Id` = '.$DbRow['Id']); 554 554 } else $System->Database->query('INSERT INTO `Referrer` (`Web`, `DateFirst`, `DateLast`, `LastURL`) VALUES ("'.$HostName.'", NOW(), NOW( ), "'.addslashes($Referrer).'")'); 555 555 }
Note:
See TracChangeset
for help on using the changeset viewer.