Jump to content

if [current time] is between 7AM and 5PM, do this, else do this


DaveLinger

Recommended Posts

so my dad wants me to make his website so that if someone goes to it during daylight hours, it shows a daytime photo of the building. At night, it shows the night photo. I figure this can be done with a simple "if" statement, but I don't know how to work with PHP time formats!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.