|
-
Hi,
how about this approach (pseudocode!!)
if($date > $StartDate && $date < $EndDate) $active = 1; else $active = 0;
and later
if($active) print "<font color=\"blue\">";
if($active) print "</font>";
I was putting the "pseudocode" there because you might be comparing dates with seconds, or dates with dates, etc.
If your database returns the dates as seconds, a mktime() to convert the date-to-show into same units would make sense
Musicman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|