That did the trick.
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Wed, 3 Apr 2002, Alex wrote:
> > I'm trying to write code that will return all records found between
> > dates(e.g. 2001-01-30 through 2002-01-30). I created a html form with
> > down menus for both dates but when I try to run it I get a parse error
> > can't figure out what's wrong.
> > $query = SELECT * FROM table where date >= '$month_1/$day_1/$year_1'
> > date <= '$month_2/$day_2/$year_2';
> By the way, here's your parse error. You need to quote strings.
> $query = "SELECT ... ";
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php