Try: $ts = time();
$i = 0; while( $i < 2 ) { $day = date("dS", $ts + $i * 86400); print("<td>$day</td>"); $i++; } On Wed, 19 Mar 2003, shaun wrote: > hi, > > using date(dS); how can i can increase the days so that it shows > > 19th 20th 21st > > I have tried > > while ($i < 2){ > $day++; > echo' <td>'.$day.'</td>'; > $i++; > } > > but i get: > > 19th 19ti 19tj > > thanks for your help > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php