asp代码可以写入数据库,但是前台不能显示,不知道什么原因!
代码如下:<table width="600" border="1" align="left" cellpadding="3" cellspacing="0" bordercolordark=#ffffff bgcolor="#FCFCFC">
<tr>
<td><table width="100%" border="1" cellspacing="0" cellpadding="0" height="36" align="center" bordercolordark=#cccccc bgcolor="#FCFCFC" >
<%
set rs=server.CreateObject ("adodb.recordset")
sql="select top 5 * from ly1 where newsid='"&id&"' Order By ID Desc"
rs.open sql,conn,1,2
if rs.eof and rs.bof then
response.write "还没有人发表评论"
else
%>
<%do while not rs.eof%>
<tr bgcolor="#FFFFFF">
<td width="27%" height="18"><font color="#CC0000" size=3>发表人:<%=rs("name")%>
<td width="27%" height="22"><font size="3">IP:<%=rs("rip")%>
</font>
<td width="44%" height="18"><font size="3">发表时间:
</font> <%=rs("date")%></font>
<tr bgcolor="#efefef">
<td height="22" colspan="3"> <%=rs("nr")%></td>
</tr>
<tr>
<td height="5" colspan="3"></td>
</tr>
<%
i=i+1
if i>=5 then exit do
rs.movenext
loop
i="0"
end if
rs.close
%>
</table></td>
</tr>
<tr>
<td><form name="save" method="post" action="Savereview1.asp?newsID=<%=Request("id")%>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14%"><div align="center">
<font size="3">姓 名:</font></div></td>
<td width="63%"><input name="name" type="text" id="name" size="10">
<font size="3">联系电话:</font><font color="#FF3300">
<input name="tel" type="text" id="tel" size="17">
<input name="name1" type="hidden" id="name1" value="用户名 ">
</font> </td>
<td width="23%"><a href="rview1.asp?id=<%=Request("id")%>" target="_blank">
<font size="3">更多留言....</font></a></td>
</tr>
<tr>
<td><div align="center"><font size="3">留言内容:</font></div></td>
<td colspan="2"><textarea name="nr" cols="50" rows="5" id="textarea"></textarea></td>
</tr>
<tr>
<td> </td>
<td colspan="2"><input type="submit" name="Submit2" value="提交">
<input type="reset" name="Submit2" value="重置">
</td>
</tr>
</table>
</form></td>
</tr>
</table>
补充:哪个大哥帮下忙呢?