如何在外国免费ASP空间正确显示数据库信息

mandyk 2002-01-28 07:43:28
这里有网址,可以看一下错误效果http://www27.brinkster.com/mandyk
下面是简单显示数据库的ASP程序,高手们请告诉哪错了,为何有上面网址所说的错误:

<%@language=vbscript%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>
<body>
返回测试主页3
<%
set conn=server.createobject("adodb.connection")
ad="provider=microsoft.jet.oledb.4.0;data source="&server.MapPath("1.mdb")
conn.open ad&";jet oledb:database password=ssfukga"
set rs=server.CreateObject("adodb.recordset")
sql="SELECT * FROM aa"
rs.open sql,conn,1,3
for i=1 to 10
if rs.eof=false then
%>
<table border="1" cellpadding="0" width="100%">
<tr>
<td width="100%">读取:<%=rs.fields("name")%></td>
</tr>
<% rs.movenext
else
exit for
end if
next
rs.close%>
</table>
</body>

</html>
...全文
120 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
mandyk 2002-01-28
  • 打赏
  • 举报
回复
上面的朋友,有什么提示呢,不是有个网址嘛,你去看错误效果呀,上面的程序就是网址上的内容,你能找出错误就最好啦!!!
hmbory 2002-01-28
  • 打赏
  • 举报
回复
提示怎么不贴出来

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧