您的位置:首页 > 数据库

数据库调出显示为下拉列表

2007-11-04 23:29 357 查看

<!--#include file=conn.asp-->


<title>数据库调出显示为下拉列表:</title>


</head>


<body>


<table bgcolor="#FFFF00" width="90%" >


<tr>


<td width="150">数据库调出</td>


<td width="250"><select name="table" >


<%


set rs = createobject("ADODB.recordset")


sql="select * from ZhiFa where type like '"&trim(request.QueryString("type"))&"__moban'"


'sql="select * from ZhiFa where type like '"&trim(request.QueryString("type"))&"_"&"_moban'"


rs.open SQL,conn,3,1


while not rs.eof


%>


<option value="<%=rs("table")%>"><%=rs("table")%></option>


<%


rs.movenext


wend


rs.close


%>


</select>


</td>


</tr>


</table>


</body>


</html>



一定要先连接数据库
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: