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!!!!!!!! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]