Re: CURRENT_DATE + $i ?

From: Date: Fri, 28 Jul 2000 13:11:37 +0000
Subject: Re: CURRENT_DATE + $i ?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-1375@lists.php.net to get a copy of this message
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

« previous php.windows (#1375) next »