Réponse acceptée !
bonjour,
Merci pour l'atricle : très intéressant !
en afit j'ai changé d'épaule en ce qui concerne mon script en me basant sur une top idée
[ Lien ]
grosso modo :
Code PHP :
$query2 = "UPDATE tasks SET `date` = DATE_ADD(`date`, INTERVAL `interval` " . $typeArray[$row->type] . " ) WHERE id = '" . $row->id . "'";
$result2 = mysql_query($query2) or die("Error in query: " . mysql_error()); }
avec une table de ce type
The "id" column stores a unique identifier for each task. This identifier is created by MySQL by automatically incrementing the identifier of the previous record.
The "msg" column stores a message describing the task.
The "type" column specifies the type of recurrence, whether daily (D), monthly (M) or yearly (Y).
The "interval" column specifies the interval between each recurrence of the task.
The "date" column specifies the date on which the task will run next.
The "owner" column specifies the email address to which the task notification should be sent.
Code :
mysql> INSERT INTO tasks (`id`, `msg`, `type`, `interval`, `date`,
mysql> `owner`)
VALUES ('', 'Run once', 'D', 0, '2003-06-25', 'webmaster@domain');
parfaitement adapté à ma problématique :-)
merci
H
le temps n'épargne pas ce que l'ont fait sans lui.. le php non plus