本帖最后由 ph221 于 2009-12-14 17:25:21 编辑

解决方案 »

  1.   

     for($i=0;$i<count($row);$i++){   
          echo "<form action=list2.php method='POST'>";
          echo "<td>".$row[$i]."</td>";   
         echo "<input type='Submit'>";
         echo "</form>";
      } 
    是这个意思吗?
      

  2.   

      <?php$db = mysql_connect("localhost", "root","123456");mysql_select_db("el",$db);$result = mysql_query("SELECT * FROM bios",$db);
    echo "<table border=0>\n";   
    echo "<tr>\n";   
    while ($field = mysql_fetch_field($result)) {   
      echo "<td>".$field->name."</td>\n";   
    }   
    echo "</tr>\n";    
    while ($row = mysql_fetch_row($result)) {   
      echo "<tr>\n";   
      for($i=0;$i<count($row);$i++){   
          echo "<td>".$row[$i]."</td>";   
      }  
      echo "<td><input type='button' value='确定' size='15'></td>"; 
      echo "</tr>\n";   
    }    
    echo "</table>\n";   
      
      
    mysql_free_result($result);   
      ?>