こんにちは、別スレットのプログラムを参考にさせていただいたのですが
htmltemplate.incを使用したテンプレート作成文で
下記の文、リストボックスに値のセットは成功したのですが、
データベースから引っ張ってきた値がリストボックスの値に合った場合、
selectedの設定を行いたいのです。
$data = file("./tate.txt");
while($record=mysql_fetch_array($rs) ){
$arg["data"][]=$record;
for($col=0; $col<count($data); $col++) {
$arg["data"][$row]["row"][$col] = array(
"state"=>$data[$col]
);
}
}