数码资讯
如何使用数据库的内容构建下拉列表
如何使用数据库的内容构建下拉列表 mydsn = DSN = XUR;UID = XUR;pwd= XUR MySQL =选择*从作者那里au_id<100 集conntemp = server.createobject(数据连接) conntemp.open mydsn 集rstemp = con
选购提示
关注价格、性能、续航、售后和真实使用场景,理性比较后再下单。
如何使用数据库的内容构建下拉列表
mydsn = DSN = XUR;UID = XUR;pwd= XUR
MySQL =选择*从作者那里au_id<100
集conntemp = server.createobject(数据连接)
conntemp.open mydsn
集rstemp = conntemp.execute(MySQL)
如果rstemp.eof然后
response.write 哦,数据库是空的!
response.write MySQL
conntemp.close
集conntemp =没有
response.end
结束如果% >
<
rstemp.movenext
环
rstemp.close
集rstemp =没有
conntemp.close
集conntemp = nothing'empty对象
%>
mydsn = DSN = XUR;UID = XUR;pwd= XUR
MySQL =选择*从作者那里au_id<100
集conntemp = server.createobject(数据连接)
conntemp.open mydsn
集rstemp = conntemp.execute(MySQL)
如果rstemp.eof然后
response.write 哦,数据库是空的!
response.write MySQL
conntemp.close
集conntemp =没有
response.end
结束如果% >
<
rstemp.movenext
环
rstemp.close
集rstemp =没有
conntemp.close
集conntemp = nothing'empty对象
%>
声明:本文内容用于数码产品信息整理与选购参考,具体价格、库存、售后政策以官方渠道和电商页面实时信息为准。