Re: [PHP-DB] Time Question

2002-03-05 Thread DL Neil
Joe, > Hi there, I have a field in my db called expires and it holds a value for > the last time somebody visited my site such as 1015354119 . > > How would I add 15 minutes onto this? Would I use the mktime() and do it > that way, or there a better way to do this? Use a SQL function (quicker,

RE: [PHP-DB] Time Question

2002-03-05 Thread Shrock, Court
15 minutes = 15 * 60 seconds. Therefore just add 900 to the field. > -Original Message- > From: Lerp [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 05, 2002 11:15 AM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Time Question > > > Hi there, I have a field in

[PHP-DB] Time Question

2002-03-05 Thread Lerp
Hi there, I have a field in my db called expires and it holds a value for the last time somebody visited my site such as 1015354119 . How would I add 15 minutes onto this? Would I use the mktime() and do it that way, or there a better way to do this? Thx Joe :) -- PHP Database Mailing List (

RE: [PHP-DB] Time Question

2002-02-14 Thread Jacob Wyke
Use: date("n/j/Y g:i:s A"); If you need any more help on what the letters mean, or you need to change the layout visit: http://www.php.net/manual/en/function.date.php keTTle_drum. >>Hi there. Got a bit of a snag. I'm migrating an ASP app to PHP with a >>mssql7.0 backend. Th

Re: [PHP-DB] Time Question

2002-02-14 Thread Lerp
om: Lerp [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 14, 2002 12:45 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Time Question > > > Hi there. Got a bit of a snag. I'm migrating an ASP app to PHP with a > mssql7.0 backend. The snag is this, I have a 'startt

RE: [PHP-DB] Time Question

2002-02-14 Thread Rick Emery
CORRECTION: -- C:\>php -f a.php 02/14/2002 12:49:50 PM -Original Message- From: Lerp [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Time Question Hi there. Got a bit of a snag. I'm migrating an AS

RE: [PHP-DB] Time Question

2002-02-14 Thread Rick Emery
-Original Message- From: Lerp [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Time Question Hi there. Got a bit of a snag. I'm migrating an ASP app to PHP with a mssql7.0 backend. The snag is this, I have a 'startt

[PHP-DB] Time Question

2002-02-14 Thread Lerp
Hi there. Got a bit of a snag. I'm migrating an ASP app to PHP with a mssql7.0 backend. The snag is this, I have a 'starttime' field in my db using the 'datetime' format ... looks like this 2/14/2002 12:21:28 PM. Unfortuanely, I'm unable to convert this field to type integer at the present tim