Help with date activated content, not database
Posted: Mon Aug 07, 2006 9:39 am
I am new to PHP but not web programming. I have a website for my band, where I'd like content to switch after a certain date and time. For example, if I have an event scheduled for 8/15/2006 that ends at 11pm, and another one that is on 8/27/2006, I would like to use an if/else statement to check the date and echo out the appropriate content:
Until 11pm on 8/15, the first event content will display. At 11:00:01 pm on 8/15, the content of the event for 8/27 will display instead.
I know I could easily do this with a database, but I'd like a quick and dirty method to implement until I get time to design and develop it properly. It doesn't need to handle more than two dates, I just need it to do the single switch until I can get home and tweak it for the next upcoming date.
TIA
Until 11pm on 8/15, the first event content will display. At 11:00:01 pm on 8/15, the content of the event for 8/27 will display instead.
I know I could easily do this with a database, but I'd like a quick and dirty method to implement until I get time to design and develop it properly. It doesn't need to handle more than two dates, I just need it to do the single switch until I can get home and tweak it for the next upcoming date.
TIA