Re: Date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Shafiq Rehman wrote:
Hello,

There's another way out there using mysql

SELECT DATE_ADD('$expiry_date', INTERVAL 7 DAY) as fDate

but of course not a recommended way.

So why suggest it?

In fact you can use it update query
(update tbl_name set expiry_date = date_add('$expiry_date', INTERVAL 7 DAY)
where user ='$user')

Seriously, no.

--
Richard Heyes
0844 801 1072
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux