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 this

Re: [PHP] Incrementing dates

2001-04-22 Thread Martin Skjöldebrand
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: > > > > > > $date = date("2001-04-28"

RE: [PHP] Incrementing dates

2001-04-22 Thread PHPBeginner.com
2001 8:13 PM To: [EMAIL 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

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

RE: [PHP] Incrementing dates

2001-04-22 Thread Martin Skjöldebrand
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 Martin Skjöldebrand
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

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 a

RE: [PHP] Incrementing dates

2001-04-22 Thread PHPBeginner.com
y, Maxim 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

Re: [PHP] Incrementing dates

2001-04-21 Thread James, Yz
Cheers, James - Original 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 b

[PHP] Incrementing dates

2001-04-21 Thread Martin Skjöldebrand
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