RE: [PHP-DB] Time Field

2004-10-28 Thread Bastien Koert
Best to use int field type and store the difference between the unix timestamp start time and the unix timestamp end time (both seconds since the epoch) which would be the number of seconds it took to complete the task. This number can then be manipulated with math to provide elapsed times in h

RE: [PHP-DB] Time Field

2004-10-28 Thread NIPP, SCOTT V \(SBCSI\)
Why would you not simply use a 'datetime' field type? This gets you exactly what you are looking for unless I am misreading what you are doing here... Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL PROTECTED] Web: http:\\ldsa.sbcld.sbc.com -Original Message- From: Bomgardne

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

2002-07-30 Thread Steve Bradwell
: Re: [PHP-DB] time field query problems. Steve, > 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; > > -EDIT_

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

2002-07-29 Thread DL Neil
Steve, > 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; > > -EDIT_LOCK is a MySQL (ver 3.23.49-max) time field, allows nulls, default is > NULL. >

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

2002-07-29 Thread Steve Bradwell
, July 29, 2002 3:13 PM To: [EMAIL PROTECTED] 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 anyon

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

2002-07-29 Thread Jason Wong
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