Re: Please help me as fast as possible.. very important!!

From: Date: Tue, 20 Jan 2004 12:06:14 +0000
Subject: Re: Please help me as fast as possible.. very important!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-175124@lists.php.net to get a copy of this message
Radwan Aladdin wrote:
Hi all Is it possible in mySQL to put a timer that changes a value inside a row in a table every while? For example : Add "1" to the value very 10 minutes for example.. Field number = 5 after ten minutes = 6 after another 10 minuste = 7..Etc.. Is it possible?And how? Regards.. I am not aware of any such functionality within MySQL.
However if you have a one-one relationship between a period of time and an incremental, could you not simply INSERT a timestamp and then compare with times with NOW, and then divide by your time period?

« previous php.general (#175124) next »