用户登录
用户注册

分享至

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

  • 作者: 别和我扯犊子啊
  • 来源: 51数据库
  • 2020-08-08

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

<% 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

' 清空对象
%>

软件
前端设计
程序设计
Java相关