Re: Flush database

From: Date: Mon, 30 Sep 2002 21:39:25 +0000
Subject: Re: Flush database
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-22103@lists.php.net to get a copy of this message
Could anyone help me to figure out how to write a piece of code that says if the time now time( ) is greater than 1 hour of the time( )then do something. I have a script that gets the time as of now and I also have the time of (lets say then) stored in a database. how would I write the code to say if the old time is greater than 1 hour do something? $subtracted_time = $time_now - $stored_database_time; if ($subtracted_time > mktime(1,0,0,0,0,0)) Thank you

« previous php.db (#22103) next »