Re: Query with date
| From: | Jake Malone | Date: | Sat, 26 Apr 2003 19:28:55 +0000 |
| Subject: | Re: Query with date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145373@lists.php.net to get a copy of this message | ||
Is NewsDate a DATE field or DATETIME?
That might be the problem.
-jake
"Denis L. Menezes" <menezesd@singnet.com.sg> wrote in message
news:027001c30c24$b08ca870$1e02a8c0@pcdenisxp...
Hello folks,
I need all news befor the 27th of April. What is wrong with the code below?
Quote:
$sql="SELECT * From News where NewsDate<(2003-04-27) order by NewsDate desc
";
Unquote
Thanks
Denis