echo $fginfo=" <td width='150' class='label'>Items</td>
<td class='content' colspan='3'>
<select name='item_code' id='item_code' onchange=\'checkitemcode();\'>
<option value='0'>Select Item</option>".
$sql12=mysql_query('select * from item_master_raw where status=1 order by item_name asc ');
while($row12 = mysql_fetch_array($sql12))
{ "<option value='$row12[item_code_rw]'>$row12[item_name]</option>".}"
</select>
</td>";
但未看到数据库中的值。请帮助我。 感谢。
答案 0 :(得分:0)
大声笑,试试这个:
<td width='150' class='label'>Items</td>
<td class='content' colspan='3'>
<select name='item_code' id='item_code' onchange=\'checkitemcode();\'>
<option value='0'>Select Item</option>"
<?php
$sql12=mysql_query('select * from item_master_raw where status=1 order by item_name asc ');
while($row12 = mysql_fetch_array($sql12))
{
echo "<option value='$row12[item_code_rw]'>$row12[item_name]</option>";
}
?>
</select>
</td>