Show Region Utility based on dates
With the Show Region Utility, what would the syntax be to show something if the value of a date field fell within the last 7 days?
I would just like to display some text 'NEW!' if a date is within the last 7 days.
With the Show Region Utility, what would the syntax be to show something if the value of a date field fell within the last 7 days?
I would just like to display some text 'NEW!' if a date is within the last 7 days.
You would have to convert your string to a time element and compare it to another time element 7 days ago.
So your database time would be something like : <?php echo(strtotime($row_Recordset1['dateField'])); ?>
and you would check if that was greter than: <?php echo(strtotime('-7 day')); ?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.