2015-02-06 83 views
0

我有一个更新MySQL数据库分数的php页面。目前该页面显示来自数据库的值。我想将其更改为下拉列表(0-9),然后更新数据库。我是一个新手,无法弄清楚这一点。你的帮助将不胜感激。这是我到目前为止。我截断了代码;带下拉菜单的PHP页面

<h1>UPDATE SCORES</h1> 
<form method="post" action="add_scores.php" > 
<table width="60%" cellpadding="15" style="font-family: verdana, arial; border: #FFCC99 1px solid"> 
     <tr> 
      <td height="28" colspan="24" align="center" style="font-size: 44px"> 
      <strong><li>1st Quarter:</li></strong><br> 
      <strong><font color="#DB2824">NFC: </font></strong><input size="4" maxlength="1" name="away_first" value="<?php echo $record['away_first'];?>"/> 
      <strong><font color="#232B85">AFC: </font></strong><input size="1" maxlength="1" name="home_first" value="<?php echo $record['home_first'];?>"/> 
      <br><br> 
+0

什么add_scores.php的内容是什么?这里没有足够的信息来帮助你。 – Mark 2015-02-06 23:38:17

+0

使用'