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,
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
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 (
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
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
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
-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
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