每个玩家都有一个玩家ID,这是一个选择表来改变玩家所在的团队。每个团队都以它的颜色代表......蓝色,黄色,绿色,红色。我希望能够改变球员队伍...我该怎么做?
我不善于解释所以我希望我有道理:/
<th></th> <th>Player</th> <th>Team</th> <th>Result</th> <th>Kills</th> <th>Deaths</th> <th>DD</th> <th>DT</th> <th>RW</th> <th>RL</th> <th>Session</th> <? foreach($stats as $stat){ ?> <tr> <td><?=$stat->playerID;?></td> <td> <?= $stat->getPlayerName($stat->playerID); ?> </td> <td> <? $player = $stat->playerID;?> <select class="form-control" name="team"> <? echo "<option value='1'>Blue</option>"; echo "<option value='2'>Green</option>"; echo "<option value='3'>Red</option>"; echo "<option value='4'>Yellow</option>"; ?> </select> </td> <td> <?= $stat->pResult; ?> </td> <td> <?= $stat->pKills; ?> </td> <td> <?= $stat->pDeaths; ?> </td> <td> <?= number_format($stat->pDmgDealt); ?> </td> <td> <?= number_format($stat->pDmgTaken); ?> </td> <td> <?= $stat->pRoundWin; ?> </td> <td> <?= $stat->pRoundLose; ?> </td> <td> <?= $stat->pSession . "m" ; ?> </td> </tr> <? } ?> </table> <input type="submit" name="subtest" value="Submit"/> </form>