Setting A Future Date
Hello, I am trying to make a script that will show "NEW" next to a file that was uploaded within a week of the current date. I am thinking that if I store the date it is uploaded and then create a date a week in the future, I can use the future date as a time to stop showing "NEW". I just do not have an idea on how to detect if it is over a week since the file was uploaded. I am guessing that it will just be a simple if statement like:
PHP Code:
if (date() < $stored['date']) { echo('<b>NEW</b>'); }
Anyone have an idea? Thanks.
Thanks DD, you saved me countless times
Bookmarks