On Mar 19, 9:12 pm, "news.kingston.net" <gwat...@kingston.net> wrote:
> I was wondering if anyone knew of a PHP function or a way that you can
> compare a date range and an IF/ELSE statement or a SWITCH statement? I'm
> trying to design code that will open a specific page between a certain set
> of dates so that I can include the promotions pages for a whole year and
> when the person opens the page, it compares that date with a date range,
> then opens the appropriate page for that month or date range.
>
> Any thoughts? Thanks!
Dear Mr./Mrs. Net, Kingston Net,
1) translate your date to a unix timestamp
2) do a simple if/else
good luck
Martin
------------------------------------------------
online accounting on bash bases
Online Einnahmen-Ausgaben-Rechnung
http://www.ea-geier.at
------------------------------------------------
m2m server software gmbh
http://www.m2m.at