AW: [PHP-WIN] CURRENT_DATE + $i ?

From: Date: Fri, 28 Jul 2000 13:19:29 +0000
Subject: AW: [PHP-WIN] CURRENT_DATE + $i ?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-1376@lists.php.net to get a copy of this message
Oopps, sorry... I am using MySQL. If there is a posibillity to do the same thing with php, it would be fine too. There are entries in the database for every day. So, if I get the actual date and if I can add 1 to 4 easily WITH switching month, I can use that value and put it into the sql-query (after changing it to the mysql-date-format). So, if anyone knows one or the other way, please help ! Thanks ! > -----Ursprungliche Nachricht----- > Von: Andrian Pervazov [mailto:apervazov@aspen-marketing.com] > Gesendet: Freitag, 28. Juli 2000 15:12 > An: Jan-Hendrik Heuing > Cc: php-windows@lists.php.net > Betreff: Re: [PHP-WIN] CURRENT_DATE + $i ? > > > Jan-Hendrik Heuing wrote: > > > > Hi ! > > > > For a kind of diary, I need the next 4 days. I tried something like > > > > $i = 0 > > while ($i < 4) { > > ...SQL.... WHERE date='CURRENT_DATE + $i'.... > > } > > > > It does woek within a month, not if there is a change of month. > > > > Does anyone have an idea, how to get the next 4 days ? > > This is not really PHP-related, since the date functions in SQL are > usually database-specific. What database are you using? > > Andrian > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.windows (#1376) next »