PHP-Code:
<?
include("config.inc.php");
mysql_connect($sqlhost,$sqluser,$sqlpass);
mysql_select_db($sqldb);
$Query = '
SELECT
id
FROM
yoz_visitors
WHERE
UNIX_TIMESTAMP(visit_date) + '.$Period.' > "'.time().'"
AND
rem_add = "'.$_SERVER['REMOTE_ADDR'].'"
';
$result = mysql_query ($Query);
?>
Kommentar