for loop trouble
| From: | Jeff Lacy | Date: | Sun, 17 Sep 2000 06:33:02 +0000 |
| Subject: | for loop trouble | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17063@lists.php.net to get a copy of this message | ||
Hello. I am having trouble with a "simple" for loop. Can anyone tell me
what I am doing wrong?
<?php
for ($i=0; date ("w", mktime (0,0,0,date("m") , date("d")+$i,
date("Y"))) !=
0; $i++;) {
echo "hi";
}
?>
The date ("w", mktime (0,0,0,date("m") , date("d")+$i,
date("Y"))) will
work by itself, but just not in the above loop. Thank you in advance for
all of your help!