高手请进:帮忙找找错!!!等待ing...
各位高手帮我看看下面这段代码哪里错了,怎么改???
本来可以执行的,但我加了if语句后就不能执行了
请大家指点一下
谢谢!!!
<script language="JavaScript">
function bb1(num){
dw = new Array();
//读数据库生成数组
<%set rs=server.CreateObject("adodb.recordset")
sql = "select ph,cpmc,zhlbsh,bsh,gdzl,gbzl,jsfsh from [jiagea] order by jgid"
rs.open sql,conn,1,1
do while not rs.eof%>
dw[<%=rs("ph")%>]= new Array("<%=rs("cpmc")%>","<%=rs("zhlbsh")%>","<%=rs("bsh")%>","<%=rs("jsfsh")%>","<%=rs("gdzl")%>","<%=rs("gbzl")%>","<%=rs(0)%>");
<%rs.movenext
loop
rs.close%>
form1.cpmc1.value=dw[num][0];
form1.zhlbsh1.value=dw[num][1];
form1.bsh1.value=dw[num][2];
if dw[num][3]=="1"
{form1.zhl1.value=dw[num][4];}
else
{form1.zhl1.value=dw[num][5];}
}
</script>