Re: Re: PHP/Access problem
| From: | George Pitcher | Date: | Wed, 27 Mar 2002 10:16:31 +0000 |
| Subject: | Re: Re: PHP/Access problem | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17941@lists.php.net to get a copy of this message | ||
Adam,
Thanks for the assist.
The query works fine without the ( ) arount the conditions.
Now on to the next part.
George
----- Original Message -----
From: "Adam Royle" <digitalbalance@mac.com>
To: <fmdev@yahoo.co.uk>; <php-db@lists.php.net>
Sent: Tuesday, March 26, 2002 10:03 PM
Subject: [PHP-DB] Re: PHP/Access problem
SELECT * FROM 'Documents'WHERE (CourseRef='4712' AND
Valid_From<=#26/03/2002# AND Valid_Until>=#26/03/2002#) Order by
Author,Title
should be
SELECT * FROM Documents WHERE (CourseRef='4712' AND
Valid_From<=#26/03/2002# AND Valid_Until>=#26/03/2002#) Order by
Author,Title
your table name should not hae single quotes around it...
adam