Re: Flush database
| From: | Micah Stevens | Date: | Fri, 27 Sep 2002 21:50:36 +0000 |
| Subject: | Re: Flush database | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22063@lists.php.net to get a copy of this message | ||
Using UNIX timestamps:
if (time() - $timestamp > mktime(1,0,0,0,0,0)) {
// Difference it greater than one hour. Perform rejection code here} else {
// Difference is one hour or less. Perform acception code here.} At 04:35 PM 9/27/2002 -0500, wade wrote:
So how would one compare the timestamp? how would you write if timestamp is greater than timestamp + 1 hour{ Ok to view page run query to update that IP to new timestamp --> I think this willbe better than a delete statement} else { Can't view page }I know you will have to compare the timestamps. the one in the database against the current hit. How would one do this comparison? -- Should you have any questions, comments or concerns, feel free to call me at 318-338-2033. Thank you for your time, Wade Kelley, Design Engineer ================================================ Bayou Internet...(888) 30-BAYOU...http://www.bayou.com Mississippi Internet...(800) MISSISSIPPI...http://www.mississippi.net Vicksburg Online...(800) MISSISSIPPI...http://www.vicksburg.com ================================================ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php