I am designing a wordpress page and wish to add a html/php widget to the sidebar so that it automatically works out the time of the day and check whether that time the store is open or closed.
Can anyone help?
I am designing a wordpress page and wish to add a html/php widget to the sidebar so that it automatically works out the time of the day and check whether that time the store is open or closed.
Can anyone help?
if(mktime(8,0,0) < time() && time() < mktime(21,0,0))
Editted for incorrect operators and Larry's illogical but correct query on php if statement structure :)