以下是代码~麻烦各位大哥给看看...
<%@LANGUAGE="VBScript" codepage="936"%>
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select name,email,title,content,date from guestbook order by id desc"
rs.open sql,conn,1,1
%>
<%do while not rs.eof%>
<html>
<head><title>淡蓝色的留言本</title>
<style type="text/css">
<!--
.STYLE1 {color: #0099FF}
-->
</style>
</head>
<body text="#000000" bgcolor="$ffffff">
<h2 align=center>淡蓝色的留言本<hr width="760">
</h2>
<table width="501" height="138" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#A3FAA7" bgcolor="#EAFDF0">
<tr>
<td height="28" colspan="2"><div align="right"><%=rs.("date")%>
</div></td>
</tr>
<tr>
<td width="114" height="27"><div align="center" class="STYLE1">姓名</div></td>
<td width="407"><%=rs.("name")%></td>
</tr>
<tr>
<td><div align="center" class="STYLE1">E-mail</div></td>
<td><%=rs.("email")%></td>
</tr>
<tr>
<td><div align="center" class="STYLE1">主题</div></td>
<td><%=rs.("title")%></td>
</tr>
<tr>
<td><div align="center" class="STYLE1">内容</div></td>
<td><%=rs.("content")%></td>
</tr>
</table>
<%
rs.movenext
loop
%>
<center><a href="1.asp">返回留言记录</a></center>
</body>
</html>
它说得错误是
Microsoft VBScript 编译器错误 (0x800A03F2)
缺少标识符
/lyb/gbook.asp, line 22, column 18
Response.Write(rs.("date"))
-----------------^
你好!谢谢
现在是没有错误了~
但是现在这个网页直接就打不开了,下面的进度条到了38%就不动了 “添加成功,2秒钟后自动跳转到留言本首页”2秒也不切换网页了~
麻烦您再给看看~
Microsoft VBScript 编译器错误 (0x800A03F2)缺少标识符
第1个回答 2007-03-08
改为:Response.Write rs("date")