当前位置:主页 > 查看内容

如何利用数据库内容建立一个下拉式列表?

发布时间:2021-04-25 00:00| 位朋友查看

简介:如何利用数据库内容建立一个下拉式列表? % myDSN="DSN=xur;uid=xur;pwd=xur" mySQL="select * from authors where AU_ID100" set conntemp=server.createobject("adodb.connection") conntemp.open myDSN set rstemp=conntemp.execute(mySQL) if rstemp.eof……

如何利用数据库内容建立一个下拉式列表?

<% myDSN="DSN=xur;uid=xur;pwd=xur"
mySQL="select * from authors where AU_ID<100"
set conntemp=server.createobject("adodb.connection")
conntemp.open myDSN
set rstemp=conntemp.execute(mySQL)
if rstemp.eof then
response.write "
,数据库为空!"
response.write mySQL
conntemp.close
set conntemp=nothing
response.end
 end if%>
<%do until rstemp.eof %>
<%
rstemp.movenext
loop
rstemp.close
set rstemp=nothing
conntemp.close
set conntemp=nothing

' 清空对象
%>


本文转载自网络,原文链接:https://m.jb51.net/article/4683.htm
本站部分内容转载于网络,版权归原作者所有,转载之目的在于传播更多优秀技术内容,如有侵权请联系QQ/微信:153890879删除,谢谢!
上一篇:如何实现在下拉菜单里输入文字? 下一篇:没有了

推荐图文


随机推荐