echo "<input type=text name=xqgw value='".$row->xqgw."'>";

解决方案 »

  1.   

    echo "<input type=text name=xqgw value=$row->xqgw>";
      

  2.   

    <?php 
    mysql_connect("localhost","wy","yan");
    mysql_select_db("test");
    $result=mysql_query("select * from xqxx");
    while ($row=mysql_fetch_object($result))
    {
    echo "<tr>";
    echo "<td>" ;
    echo "<input type=text name=xqgw value=$row->xqgw>";
    echo "</td>";
    echo "<td><input type=text name =xqrq value=$row->xqrq></td>";
    echo "<td><input type =text name=xbyq  value=$row->xbyq></td>";
    echo "<td><input type =text name=gwms  value=$row->gwms></td>";
    echo "<td><input type =text name =yzzg value=$row->yzzg></td>";
    echo "<td><input type =text name =fbsj value=$row->fbsj></td>";
    echo ('</tr>');
    }
    mysql_free_result($result);
    ?>