asp网页,文章详细页面,需要实现上一篇下一篇功能。怎么写代码,求大神帮忙?我的代码如下:
<tdwidth="100%"><%setrs=server.CreateObject("adodb.recordset")rs.open"select*fromnews...
<td width="100%"><%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from news where id="&request("id"),conn,3,3
counter=rs("counter")+1
rs("counter")=counter
rs.update
rs.close
rs.open "select * from news where id="&request("id"),conn,1,1%>
<title><%=rs("name")%>-常州市柴盛装饰工程有限公司</title>
<table width="99%" border="0" align="center">
<tr>
<td align="center"> </td>
</tr>
<tr>
<td height="25"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F7F7F7">
<tr>
<td background="images/xian2.jpg"><img src="images/xian2.jpg" width="42" height="1"></td>
</tr>
<tr>
<td height="30" align="center"><%=rs("name")%></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><%=rs("jj")%></td>
</tr>
</table> 展开
rs.open "select * from news where id="&request("id"),conn,3,3
counter=rs("counter")+1
rs("counter")=counter
rs.update
rs.close
rs.open "select * from news where id="&request("id"),conn,1,1%>
<title><%=rs("name")%>-常州市柴盛装饰工程有限公司</title>
<table width="99%" border="0" align="center">
<tr>
<td align="center"> </td>
</tr>
<tr>
<td height="25"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F7F7F7">
<tr>
<td background="images/xian2.jpg"><img src="images/xian2.jpg" width="42" height="1"></td>
</tr>
<tr>
<td height="30" align="center"><%=rs("name")%></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><%=rs("jj")%></td>
</tr>
</table> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询