asp sql,sql查询记录建立ASP数组

伏羲号

asp sql,sql查询记录建立ASP数组?

<script type="text/javascript">

asp sql,sql查询记录建立ASP数组

var arr1=new array();

<%

sql = "select answer from question where tixingid = 3"

set rs = server.CreateObject("adodb.recordset")

rs.open sql,connbbs,1,1

Dim a() '定义a数组

Dim l

l = 0

While Not Rs.EOF

%>

arr1 =<%= Rs("answer")%> //保存新数据

<%

Rs.MoveNext

Wend

rs.close

set rs = nothing

%>

</script>

发表评论

快捷回复: 表情:
AddoilApplauseBadlaughBombCoffeeFabulousFacepalmFecesFrownHeyhaInsidiousKeepFightingNoProbPigHeadShockedSinistersmileSlapSocialSweatTolaughWatermelonWittyWowYeahYellowdog
评论列表 (暂无评论,158人围观)

还没有评论,来说两句吧...