Im trying to have it on this page so that if the value $playernum = 3, that this list will appear. but currently its giveing me the
[Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
error, however.
If i take out the 2 ' '
around name in $row_player['name']
it shows me a list on the page…but the list only gives me the first of the values/records that its supposed to, whereas if i was JUST useing html to output it, it would give me all of the values/records i need.
Is there a way to still have it output ALL of the values? while its in the php code?
<?php
if($playernum == 3){echo "<select name='1'>
do {<option value='$row_player['name']'>$row_player['name']</option>
}
while ($row_player = mysql_fetch_assoc($player));
$rows = mysql_num_rows($player);
if($rows > 0) {
mysql_data_seek($player, 0);
$row_player = mysql_fetch_assoc($player);
}</select> ";}
?>