This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
inside/cron/forenings_info_nagging.php
2011-03-04 12:14:27 +01:00

32 lines
421 B
PHP

<?php
require 'db.php';
$res = mysql_query("SELECT * FROM `din_division` WHERE `updated` IS NULL or `updated` + INTERVAL 90 DAY < now()");
while($row = mysql_fetch_assoc($res))
{
$time = strtotime($row['updated']);
$diff = $time - time();
$diff /= 60 * 60 * 24;
$diff = round($diff);
var_dump($row);
if($diff == 0)
{
}
else if($diff == 7)
{
}
else if($diff == 14)
{
}
else if($diff == 21)
{
}
}