I would suggest a query like this...<br>Select * from calendar where event-date between &#39;2012-3-29 00:00:00&#39; and &#39;2012-03-29 23:59:59&#39;<br><br>that should* show all the events for 29 March 2012.<br><br>Not sure that&#39;s the most efficient mechanism... group by might be more efficient. <br><br>Does that help?<br><br>*syntax may not be 100% corect...may have to convert date string to a date.<br><br>----- Forwarded message -----<br>From: &quot;Andy D&#39;Arcy Jewell&quot; &lt;andy.jewell@sysmicro.co.uk&gt;<br>Date: Thu, Mar 8, 2012 13:22<br>Subject: [Wolves] mysql select help<br>To: &quot;Wolverhampton Linux User Group&quot; &lt;wolves@mailman.lug.org.uk&gt;<br><br>On 08/03/12 13:11, Wayne Morris wrote:<br>&gt;<br>&gt; The problem is I don&#39;t know the next date (it is a timestamp) and I &gt; don&#39;t want the stuff AFTER the date, its basically a simple<br>&gt; calendar preview - your next day with stuff to do is this date, and &gt; contains these items eg<br>&gt;<br>&gt; Fri 9th apples, pears , bananas<br>&gt; tues 16th eggs, beans<br>&gt; thurs 18th turkey, ham<br>&gt;<br>&gt; I just want to click and get &quot;apples etc&quot; if I click on thurs 8th., &gt; and if clicked on sat 1Oth get eggs,beans, with your first I would get &gt; all (as i do with current set up),<br>&gt; or i&#39;d need to put a date in a search box (which i&#39;ve also got).<br>&gt;<br>&gt; cheers<br>&gt;<br>Maybe the mysql date functions can help, particularly adddate():<br><br><a href="http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_adddate">http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_adddate</a><br><br>-- <br>Andy D&#39;Arcy Jewell<br><br>SysMicro Limited<br>Linux Support<br>T: &nbsp;0844 9918804<br>M: &nbsp;07961605631<br>E: &nbsp;andy.jewell@sysmicro.co.uk<br>W: &nbsp;www.sysmicro.co.uk<br><br><br>_______________________________________________<br>Wolves LUG mailing list<br>Homepage: <a href="http://www.wolveslug.org.uk">http://www.wolveslug.org.uk</a>/<br>Mailing list: Wolves@mailman.lug.org.uk<br>Mailing list home: <a href="https://mailman.lug.org.uk/mailman/listinfo/wolves">https://mailman.lug.org.uk/mailman/listinfo/wolves</a><br><br><br><br>