PHP変数からHTMLドロップダウンメニューに設定したい。私がやりたいことがわかるように、コードを提供します。
<?php
$html_table = '
<table border="0" cellspacing="0" cellpadding="0"><tr>';
while($arr = pg_fetch_array($result1))
{
$html_table .= "<tr><td> $arr[0] </td></tr>";
}
$html_table .='</tr>';
?>
<p>
<select name="db" size="1">
<option> $html_table </option> #### <- that is my question, how to get that working
</select>
</p>
私がやりたいことを理解していただければ幸いです。もっといい方法をご存知でしたら教えてください。乾杯