Thank you,

I think this will help me greatly. It was the mktime(function) that was
throwing me for a loop.

Thank you all for your help also!

Micah Stevens wrote:

> 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 will
> >be 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
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--
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

Reply via email to