好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

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

NEWSZW_HZH_BEGIN-->

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

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

' 清空对象
%>

NEWSZW_HZH_END-->

查看更多关于如何利用数据库内容建立一个下拉式列表?_编程的详细内容...

  阅读:39次