RE: [PHP-DB] time field query problems.

From: Date: Mon, 29 Jul 2002 19:24:43 +0000
Subject: RE: [PHP-DB] time field query problems.
Groups: php.db 
Request: Send a blank email to php-db+get-20863@lists.php.net to get a copy of this message
Ya I checked and the manual said that with a version 3.23 or higher you can use + and - signs instead of the date_add subtract. Either way it just returns null. Ever tried somthing like this? Thanks, Steve. -----Original Message----- From: Jason Wong [mailto:phplist@gremlins.com.hk] Sent: Monday, July 29, 2002 3:13 PM To: php-db@lists.php.net Subject: Re: [PHP-DB] time field query problems. On Tuesday 30 July 2002 02:41, Steve Bradwell wrote: > Sorry to repost but I typed in the wrong sql statement in my previous post. > > For some reason the below statement is not working. Can anyone tell me why? > > Select EDIT_LOCK from ordmaster where EDIT_LOCK + INTERVAL 10 MINUTE < > now() AND ORDER_NO = '5' AND EDIT_LOCK > 0; I think you have to use something like: ... WHERE DATE_ADD(EDIT_LOCK, ...) < ... Check manual for details. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Intuition, however illogical, is recognized as a command prerogative. -- Kirk, "Obsession", stardate 3620.7 */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#20863) next »