RE: [PHP] Incrementing dates

2001-04-22 Thread PHPBeginner.com
Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 22, 2001 7:13 AM To: [EMAIL PROTECTED] Subject: [PHP] Incrementing dates How do I

RE: [PHP] Incrementing dates

2001-04-22 Thread PHPBeginner.com
Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 22, 2001 4:15 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Incrementing dates James, Yz wrote: If anyone has an

RE: [PHP] Incrementing dates

2001-04-22 Thread Martin Skjldebrand
PHPBeginner.com wrote: INSERT INTO table SELECT date+INTERVAL 10 DAYS AS date FROM table WHERE bla=bla; it is just a way to do it. you will definitely have to play with it. However you can easily make two queries to read the previous date combining it with INTERVAL and then do an

RE: [PHP] Incrementing dates

2001-04-22 Thread PHPBeginner.com
] Incrementing dates PHPBeginner.com wrote: I am not sure on how your possibilities are, but doing this in PHP means literally "adding useless lines and loops" If possible, do it with SQL queries. Read the documentations on date datatypes, this is so much easier... almost magic. AND You

RE: [PHP] Incrementing dates

2001-04-22 Thread Martin Skjldebrand
PHPBeginner.com wrote: I am not sure on how your possibilities are, but doing this in PHP means literally "adding useless lines and loops" If possible, do it with SQL queries. Read the documentations on date datatypes, this is so much easier... almost magic. AND You can (mySQL,

RE: [PHP] Incrementing dates

2001-04-22 Thread PHPBeginner.com
PROTECTED] Subject: RE: [PHP] Incrementing dates PHPBeginner.com wrote: INSERT INTO table SELECT date+INTERVAL 10 DAYS AS date FROM table WHERE bla=bla; it is just a way to do it. you will definitely have to play with it. However you can easily make two queries to read the previous date

Re: [PHP] Incrementing dates

2001-04-22 Thread Martin Skjldebrand
James, Yz wrote: If anyone has any comments on this, I'd like to hear them (there's probably a simpler way around what I have done). Here's the URL: http://www.yorkshire-zone.co.uk/date_increment.php And here's the code that powers it: HTML BODY ? $date = date("2001-04-28");

RE: [PHP] Incrementing dates

2001-04-22 Thread Warren Vail
differences. There are lots of other datetime functions in the manual ;) Warren Vail -Original Message- From: PHPBeginner.com [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 22, 2001 3:09 AM To: Martin Skjoldebrand; [EMAIL PROTECTED] Subject: RE: [PHP] Incrementing dates you can then do

Re: [PHP] Incrementing dates

2001-04-21 Thread James, Yz
Message - From: Martin Skjöldebrand [EMAIL PROTECTED] Newsgroups: php.general Sent: Saturday, April 21, 2001 11:06 PM Subject: [PHP] Incrementing dates How do I increment dates past the turn of the month (or year)? Say I've got a booking of equipment A for the 28 April to 5 May and want to add

[PHP] Incrementing dates

2001-04-21 Thread Martin Skjldebrand
How do I increment dates past the turn of the month (or year)? Say I've got a booking of equipment A for the 28 April to 5 May and want to add each instance to a calendar (mysql table). Can I increment the variable (format 2001-04-28) holding the date ($txtDate++) somehow so that it doesn't add