作者arrack (艾瑞克)
看板PHP
标题Re: [请益] 下拉式选单内连资料库内容
时间Mon May 19 16:13:23 2008
恕删
如果你会把mysql的资料读取出来...
那麽改成下拉式方块,也只是加上<option>而已
<select>
<?
$sql="select * from xxx where xxxx";
$rs=mysql_query($sql);
while ($row=mysql_fetch_array($rs)){
?>
<opiton value="<?=$row["xxx"]?>"><?=$row["XXX"]?></option>
<?
}
?>
</select>
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.126.63.16
※ 编辑: arrack 来自: 59.126.63.16 (05/19 16:23)