Re: Dropdown Menu Woes
| From: | Pavel Jartsev | Date: | Thu, 07 Dec 2000 11:50:14 +0000 |
| Subject: | Re: Dropdown Menu Woes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29100@lists.php.net to get a copy of this message | ||
Roy W wrote:
>
> ...
>
> WHILE ($i < $number):
> $color = mysql_result($result,$i,"color");
> echo htmlentities("<option>$color</option>");
> /* also tried but no-go: PRINT "<option>$color</option>"; */
> $i++;
> ENDWHILE;
>
> ...
>
Print $color using one of these statements:
1) echo '<option>'.$color.'</option>';
2) echo "<option>$color</option>";
If $color='black', the output will be:
<option>black</option>
--
Pavel a.k.a. Papi