求救!换行问题?
我想把查询出来的记录显示在四个格里,但没有成功,
请大家帮忙看看是哪里错了
<table cellpadding="3" width="95%" border="0" cellspacing="3">
<%
set rs_s=server.CreateObject("adodb.recordset")
rs_s.open "select * from article where boardid in ("&request("boardid")&")",conn,1,1
if rs_s.recordcount=0 then
%>
<tr>
<td width="90%" colspan="4">暂无文章
</td>
</tr>
<%
else
while not rs_s.eof
%>
<tr>
<td width="20%" height="16" >
<% if not rs_s.eof then %>
<a href="booksnew.asp?id=<%=rs("id")%>"><%=rs("Title")%></a>
</td>
<%rs_s.movenext
end if%>
<td width="20%" height="16" >
<% if not rs_s.eof then %>
<a href="booksnew.asp?id=<%=rs("id")%>"><%=rs("Title")%></a>
</td>
<%rs_s.movenext
end if%>
<td width="20%" height="16" >
<% if not rs_s.eof then %>
<a href="booksnew.asp?id=<%=rs("id")%>"><%=rs("Title")%></a>
</td>
<%rs_s.movenext
end if%>
<td width="20%" height="16" >
<% if not rs_s.eof then %>
<a href="booksnew.asp?id=<%=rs("id")%>"><%=rs("Title")%></a>
</td>
</tr>
<%
rs_s.movenext
end if%>
<%
wend
end if
rs_s.close
set rs_s=Nothing
%>
</table>
错误类型:
ADODB.Recordset (0x800A0BB9)
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
/xx/xx.asp, 第 5 行
我把前面改成
<table cellpadding="3" width="95%" border="0" cellspacing="3">
<%
set rs_s=server.createobject("adodb.recordset")
exec="select * from article where boardid in ("&request("boardid")&")"
rs_s.open exec,conn,1,1
if rs_s.recordcount=0 then
%>
也是一样出错,
请朋友们帮忙~~~~