In my SQL statement I have this:
Expand|Select|Wrap|Line Numbers
- SELECT id, title, body
- FROM article
- WHERE (article_expires IS NOT NULL OR article_expires = '' OR
- article_expires LIKE '0000-00-00%' OR article_expires < now())
- ORDER BY ranking DESC, record_entered DESC, upper(title) ASC,
- upper(body) ASC
----+--------------------------------------------------------------------------+---------------------+Yet in my resultset this article appears even as of 3:04pm! What am I
| id | title
| article_expires |
+----+--------------------------------------------------------------------------+---------------------+
| 1 | This article should never appear | 2006-06-12
14:55:36 |
possibly doing wrong for this to happen and how can I fix this? The
goal is to only show unexpired articles AND/OR articles that have no
expiration date.
Thanx
Phil