Re: Date Manipulation
| From: | John W. Holmes | Date: | Sun, 21 Mar 2004 13:36:50 +0000 |
| Subject: | Re: Date Manipulation | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33584@lists.php.net to get a copy of this message | ||
Shannon Doyle wrote:
My question, how do I get the date entered into the form add 35days to it and then include that into the same sql query as the first one. Or do I have to use a second sql query? If the second query how would I get the date and add 35days??INSERT INTO table (date1, date2) VALUES (20040321, 20040321 + INTERVAL 35 DAY) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com