[!--quoteo(post=375297:date=May 19 2006, 02:17 PM:name=DaVuLf)--][div class=\'quotetop\']QUOTE(DaVuLf @ May 19 2006, 02:17 PM)
Invincible, thanks for the reply. I'm aware that I need to have it stored in a database, but I'm not sure how to 'get' those numbers. How do you use the date function? Is there any documentation on it?
check out the manual for the most help on the date function. however, in and of itself, it won't be a whole lot of use to you for checking things. here are four great functions that used in conjunction will allow you to do just about anything with times:
[a href=\"http://www.php.net/time\" target=\"_blank\"]time()[/a]
[a href=\"http://www.php.net/mktime\" target=\"_blank\"]mktime()[/a]
[a href=\"http://www.php.net/strtotime\" target=\"_blank\"]strtotime()[/a]
[a href=\"http://www.php.net/date\" target=\"_blank\"]date()[/a]
time, mktime and strtotime return a UNIX timestamp that can then be used with date() to display however you like. if you want to read up on each of them, i've linked to the corresponding manual page for each above. once you've gotten a feel for how they work and you have a more specific question about how to do something, let me know, and i'm sure we can help you work through it.
dates and times can be some of the most tricky problems in working with PHP, but they can also be the most rewarding when you get a handle on it.