Re: Working with dates
| From: | Jim Lucas | Date: | Mon, 17 Mar 2003 18:53:18 +0000 |
| Subject: | Re: Working with dates | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139996@lists.php.net to get a copy of this message | ||
you do that same query in mysql
Jim
----- Original Message -----
From: "Joshua Moore-Oliva" <josh@chatgris.com>
To: "Brad Harriger" <bradharriger@clarionhospital.org>;
<php-general@lists.php.net>
Sent: Monday, March 17, 2003 10:49 AM
Subject: Re: [PHP] Working with dates
> Switch to postgres! then you can do
>
> SELECT stamp FROM table
> WHERE stamp BETWEEN timestamp 'today' AND timestamp 'tomorrow';
>
> On March 17, 2003 12:43 pm, Brad Harriger wrote:
> > I have two variables, $StartDate and &EndDate that contain values read
> > from MySQL Date fields. How can I determine if a value entered by the
> > user is between the two dates? I'm using PHP 4.0.6.
> >
> >
> > Thanks in advance,
> >
> > Brad
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>