加入收藏 | 设为首页 | 会员中心 | 我要投稿 我爱制作网_池州站长网 (https://www.0566zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

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

发布时间:2016-11-29 17:33:53 所属栏目:MySql教程 来源:站长网
导读:如何利用数据库内容建立一个下拉式列表? lt;% myDSN="DSN=xur;uid=xur;pwd=xur" mySQL="select * from authors where AU_IDlt;100" set conntemp=server.createobject("adodb.connection") conntemp.open myDSN set rstemp=conntemp.execute(mySQL) if rs

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

lt;% myDSN="DSN=xur;uid=xur;pwd=xur"
mySQL="select * from authors where AU_IDlt;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%gt;
lt;%do until rstemp.eof %gt;
lt;%
rstemp.movenext
loop
rstemp.close
set rstemp=nothing
conntemp.close
set conntemp=nothing

' 清空对象
%gt;

(编辑:我爱制作网_池州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!