# \[PHP\]Event Display Help

**URL:** <https://forum.kirupa.com/t/php-event-display-help/185939>\
**Category:** programming\
**Created:** [April 17, 2006, 8:47pm UTC](https://forum.kirupa.com/t/php-event-display-help/185939 "2006-04-17T20:47:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zaxza](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zaxza/32/2227_2.png) [@Zaxza](https://forum.kirupa.com/u/Zaxza)\
**Post date:** [April 17, 2006, 8:47pm UTC](https://forum.kirupa.com/t/php-event-display-help/185939/1 "2006-04-17T20:47:10Z")

</div>

does anyone know how to display a bit of informatio until the date provided with it. e.g. say my band has a gig on the 5th of may, show the gig info untill then then hide it.  
Any ideas?

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [April 17, 2006, 8:52pm UTC](https://forum.kirupa.com/t/php-event-display-help/185939/2 "2006-04-17T20:52:11Z")

</div>

I would use a database to pull the info and then all that would be filtered through in the “select” statement

---

<div class="post-metadata">

**Author:** ![hl1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hl1/32/849_2.png) [@hl1](https://forum.kirupa.com/u/hl1)\
**Post date:** [April 17, 2006, 9:02pm UTC](https://forum.kirupa.com/t/php-event-display-help/185939/3 "2006-04-17T21:02:35Z")

</div>

[www.php.net/date](http://www.php.net/date)

Just do a check to see whether the day has come, then mark a field in the database for the event as happened. In the select statement, have a WHERE `happened`=‘0’, to select all the events to come. Mark all the other events with a 1. You could also just delete the event, up to you.
