HTML lists & PHP

From: Date: Mon, 28 Jan 2002 22:02:04 +0000
Subject: HTML lists & PHP
Groups: php.general 
Request: Send a blank email to php-general+get-82472@lists.php.net to get a copy of this message
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!!!!!!!!

« previous php.general (#82472) next »