MySQL Version 4.0.15 I've since found this...
MySQL supports the between operator for the DATE field.
SELECT * FROM Appointments WHERE Moment BETWEEN StartTime AND EndTime ORDER BY StartTime;
if the StartTime and EndTime are two PHP variables then use quotes like ' $StarTime ' This must solve the prob
but that doesn't appear to work? Well confused now...?
No, not but much focused now after knowing the fact that MySQL is not a Database with stuff
Regards, V Kashyap
*Sai Hertz And Control Systems <sank89@xxxxxxxxxxxxx>* Sent by: sank89@xxxxxxxxxxxxx
22/12/2003 17:25 Please respond to aspire420@xxxxxxxxxx
To Tristan.Pretty@xxxxxxxxxxxxxxxx cc php-db@xxxxxxxxxxxxx Subject Re: Age old - Sort between two dates...
Dear Tristan Pretty,
>I have a date field in my database, and want to select all entries in the
>database from date 1 --> date 2
>I'll let the user decide what dates...
> >
What Database are you using and its version this will give you replies
not google searches
>Can anyone point me in the right direction as to what command I need?
>
>Sorry to be a dunce, but I can't find this one...
>
>Tris...
>
>*********************************************************************
>The information contained in this e-mail message is intended only for
>the personal and confidential use of the recipient(s) named above. >If the reader of this message is not the intended recipient or an agent
>responsible for delivering it to the intended recipient, you are hereby
>notified that you have received this document in error and that any
>review, dissemination, distribution, or copying of this message is
>strictly prohibited. If you have received this communication in error,
>please notify us immediately by e-mail, and delete the original message.
>***********************************************************************
>
>
> >
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
********************************************************************* The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. ***********************************************************************
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php