VBscript ASP ACCESS数据库输出错误,啥原因?我想把整个数据表都输出来。
这是源码<%Response.Write("<TRbgcolor=grayalign=middle>")setstar=Server.CreateObject("adod...
这是源码
<% Response.Write("<TR bgcolor=gray align=middle>")set star=Server.CreateObject("adodb.connection")star.open("information1")zd=star.Execute("select * from xiaofei")for I=0 to zd.Fields.count-1Response.Write("<TD><font><b>"+zd(I).name+"</b></font></TD>")nextResponse.Write("</TR>")zd.MoveFirst
while(not zd.Eof)row="<TR align=middle>"for I=0 to zd.Fields.count-1row=row+"<TD>"+zd(I)+"</TD>"nextResponse.Write(row+"</TR>")zd.MoveNextwend%> 展开
<% Response.Write("<TR bgcolor=gray align=middle>")set star=Server.CreateObject("adodb.connection")star.open("information1")zd=star.Execute("select * from xiaofei")for I=0 to zd.Fields.count-1Response.Write("<TD><font><b>"+zd(I).name+"</b></font></TD>")nextResponse.Write("</TR>")zd.MoveFirst
while(not zd.Eof)row="<TR align=middle>"for I=0 to zd.Fields.count-1row=row+"<TD>"+zd(I)+"</TD>"nextResponse.Write(row+"</TR>")zd.MoveNextwend%> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询