Re: HTML lists & PHP
| From: | Edward van Bilderbeek - Bean IT | Date: | Mon, 28 Jan 2002 22:16:07 +0000 |
| Subject: | Re: HTML lists & PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82473@lists.php.net to get a copy of this message | ||
maybe you can try something like this...
$r1 = "game1"
$r2 = "game16";
echo "<select name='game'>";
echo "<option value=game1>$teams[$r1]</option>";
echo "<option value=game1>$teams[$r2]</option>";
echo "</select>";
Greets,
Edward
> I keep getting parse error with this code:
> ($teams[] is a big array that I got by using mysql_fetch_array)
>
>
> $r = "game";
> echo "<select name='game'>";
> echo "<option value=game1>$teams[$r.'1']</option>";
> echo "<option value=game1>$teams[$r.'16']</option>";
> echo "</select>";
>
> Im trying to make a dropdown list.
>
> Here is the error message:
> Parse error: parse error, expecting `']'' in
> /home/filanya/www/madness/bracket.php on line 65
>
> (line 65 is the third line down)
>
> THANKS!!!!!!!!
>