您现在的位置是:网站首页> 编程资料编程资料
如何利用数据库内容建立一个下拉式列表?_编程10000问_
                     2023-05-25
                112人已围观
                
                2023-05-25
                112人已围观
            
简介 如何利用数据库内容建立一个下拉式列表?_编程10000问_
如何利用数据库内容建立一个下拉式列表?
<% 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
' 清空对象
%>
 
                                
                                                         
                                
                                                         
                                
                                                         
 
    