Afficher un message
Vieux 05/10/2007, 06h58   #2
subtenante
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Find next available slot in Calendar

On Tue, 02 Oct 2007 18:02:58 -0700, ½aßrain <mccbrad@gmail.com> wrote:

>Hi Guys,
>
>I have a table of events with a start and finish datetime.
>
>I am trying to write a php function that will return the next earliest
>start time that an event will fit. Will this be something that I can
>do just in mysql?
>
>or something much more complex?
>
>anyone have any tips?


SELECT * FROM mytable
WHERE start > NOW()
ORDER BY start
LIMIT 1
  Réponse avec citation
 
Page generated in 0,04300 seconds with 9 queries