开发者

Check Date and Display Until Event Date

I want to list an event in the sidebar and have it automatically disappear on the day after the event.

<h6>Next Meeting</开发者_高级运维h6>
<dl id="nextmeeting">
<dt><a href="members-meetings.html">Oct 15, 2011</a></dt>
<dd>La Quinta Inn & Suites</dd>
<dd>303 Blum, San Antonio</dd>
</dl>

So, on October 16th, I want that info to be hidden. I am sure there is a simple PHP or JavaScript solution.

Thanks in advance.


<?php if(strtotime('2011-10-16') > time()): ?>
<h6>Next Meeting</h6>
<dl id="nextmeeting">
<dt><a href="members-meetings.html">Oct 15, 2011</a></dt>
<dd>La Quinta Inn & Suites</dd>
<dd>303 Blum, San Antonio</dd>
</dl>
<?php endif; ?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜