Re: [PHP-DB] Expiry Date ($date function)

2005-03-03 Thread Jochem Maas
better to use single quotes for your strings. Ron - Original Message - From: Calvin Lough <[EMAIL PROTECTED]> To: Ron Piggott <[EMAIL PROTECTED]>; PHP DB Sent: Wednesday, March 02, 2005 10:50 AM Subject: Re: [PHP-DB] Expiry Date ($date function) The strtotime function should

Re: [PHP-DB] Expiry Date ($date function)

2005-03-02 Thread Ron Piggott
I got a parse error. Ron - Original Message - From: Calvin Lough <[EMAIL PROTECTED]> To: Ron Piggott <[EMAIL PROTECTED]>; PHP DB Sent: Wednesday, March 02, 2005 10:50 AM Subject: Re: [PHP-DB] Expiry Date ($date function) > The strtotime function should work the best. > > $add

Re: [PHP-DB] Expiry Date ($date function)

2005-03-02 Thread Calvin Lough
The strtotime function should work the best. $add_twentyone = strtotime("+21 days"); I dont know if that will work or not. I just found that method in the php doc and it looked interesting. Hopefully it will work for you. Calvin On Wed, 2 Mar 2005 04:41:04 -0500, Ron Piggott <[EMAIL PROTECTED]>

RE: [PHP-DB] Expiry Date ($date function)

2005-03-02 Thread Bastien Koert
mktime can do this...have a look at the docs...example in there bastien From: "Ron Piggott" <[EMAIL PROTECTED]> To: "PHP DB" Subject: [PHP-DB] Expiry Date ($date function) Date: Wed, 2 Mar 2005 04:41:04 -0500 I figured out that the syntax below creates the date in the

[PHP-DB] Expiry Date ($date function)

2005-03-02 Thread Ron Piggott
I figured out that the syntax below creates the date in the way it may be stored in a mySQL table: $todays_date=DATE('Y-m-d'); Is there any way to add 21 days to this as an expiry date? For example if the date was March 20th 2005 21 days would be in April --- is there any way of dealing with thi