Re: While and echoing HTML
| From: | (Fabian Müller) | Date: | Tue, 10 May 2005 05:57:01 +0000 |
| Subject: | Re: While and echoing HTML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-214811@lists.php.net to get a copy of this message | ||
Mark Sargent <powderkeg@snow.email.ne.jp> writes:
> $i=0;
> while ($i < $num){
> $product_type=mysql_result($result,$i,"product_type_detail");
> echo "<tr><td><? echo $product_type ?></td></tr>"
> }
> $i++
You should put "$i++" into the while loop. And you should add an ";"
at the end of the echo line as well as at the end of "$i++".
With kind regards, Fabian Müller