Re: Date
| From: | Shafiq Rehman | Date: | Tue, 19 Jun 2007 13:04:29 +0000 |
| Subject: | Re: Date | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257397@lists.php.net to get a copy of this message | ||
On 6/19/07, Richard Heyes <richardh@phpguru.org> wrote:
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?just to share the knowledge
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-- Shafiq Rehman (ZCE) http://www.phpgurru.com | http://shafiq.pk Cell: +92 300 423 9385