2

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.

1
  • What are you using to generate the sidebar? Where is the data coming from a database some where?
    – Brombomb
    Oct 9, 2011 at 4:09

1 Answer 1

3
<?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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.