열의 이름을 에코하는 방법은 무엇입니까? 콘텐츠 (td)를 선택하고 에코 할 수 있었지만 "value value"를 어떻게로드 할 지 모릅니다. MySql 데이터베이스에서 동적으로로드하는 것을 의미합니다.열의 이름을 에코하는 방법
데이터베이스와 동일한 위치에서 "로드 값"을 원합니다. 필드 이름을 표시하려면
<table>
<tr>
<th><input class="gris" type="text" name="a" value="load value"/></td>
<th><input class="gris" type="text" name="b" value="load value"/></td>
<th><input class="gris" type="text" name="c" value="load value"/></td>
<th><input class="gris" type="text" name="d" value="load value"/></td>
</tr>
<?php
$result = mysql_query("SELECT * FROM eee");
while($row = mysql_fetch_array($result)) {
?>
<tr>
<td> <input class="blanc" type="text" name="num" value="<?php echo $row['id']?>"/> </td>
<td><input class="blanc" type="text" name="primer" value="<?php echo $row['a']?>"/></td>
<td><input class="blanc" type="text" name="segon" value="<?php echo $row['b']?>"/></td>
<td><input class="blanc" type="text" name="segon" value="<?php echo $row['c']?>"/></td>
</tr>
<?php } ?>
</table>
여기서 "로드 값"을 얻고있다 – Sibu
필드 이름을 표시하겠습니까? – GBD
당신은 또한 mysql_field_name()을 사용할 수있다 – GBD