高手帮忙改下分页代码
<tablebgcolor="#000000"border="0"cellspacing="1"align="center"cellpadding="0"><trbgco...
<table bgcolor="#000000" border="0" cellspacing="1" align="center" cellpadding="0">
<tr bgcolor="#FFFFFF">
<td valign="top">
<table bgcolor="#000000" border="0" cellspacing="1" align="center" cellpadding="0">
<tr bgcolor="#FFFFFF" >
<td width="50" align="center" height="40"><font color="#FF0000">序号</font></td>
<td width="250" align="center"><font color="#FF0000">产品名称</font></td>
<td width="130" align="center"><font color="#FF0000">产品型号</font></td>
<td width="50" align="center"><font color="#FF0000">单位</font></td>
<td width="53" align="center"><font color="#FF0000">价格</font></td>
<td width="30" align="center"><font color="#FF0000">查看</font></td>
</tr>
<%
set rst=server.CreateObject("adodb.recordset")
sql="select * from [sme_proinfo] where pro_class='"&request("id")&"'"
rst.open sql,conn,1,1
if rst.eof and rst.bof then
response.write "暂时没有信息!"
else
do while not rst.eof%>
<tr bgcolor="#FFFFFF">
<td width="50" align="center" height="40"><%=rst("pro_id")%></td>
<td width="250" align="center"><%=rst("pro_title")%></td>
<td width="130" align="center"><%=rst("pro_type")%></td>
<td width="50" align="center"><%=rst("dw")%></font></td>
<td width="53" align="center"><%=rst("sme_langstate")%></font></td>
<td width="30" align="center"><a href="proshow.asp?id=<%=rst("pro_id")%>" target="_blank">详情
</a></font></td>
</tr>
<%rst.movenext
loop
rst.close
end if%>
</table>
</td>
</tr>
</table>
想做成每页20个记录,有数字分页,然后pro_id最好能是自动编号
高手帮忙解决下,拜托啦 展开
<tr bgcolor="#FFFFFF">
<td valign="top">
<table bgcolor="#000000" border="0" cellspacing="1" align="center" cellpadding="0">
<tr bgcolor="#FFFFFF" >
<td width="50" align="center" height="40"><font color="#FF0000">序号</font></td>
<td width="250" align="center"><font color="#FF0000">产品名称</font></td>
<td width="130" align="center"><font color="#FF0000">产品型号</font></td>
<td width="50" align="center"><font color="#FF0000">单位</font></td>
<td width="53" align="center"><font color="#FF0000">价格</font></td>
<td width="30" align="center"><font color="#FF0000">查看</font></td>
</tr>
<%
set rst=server.CreateObject("adodb.recordset")
sql="select * from [sme_proinfo] where pro_class='"&request("id")&"'"
rst.open sql,conn,1,1
if rst.eof and rst.bof then
response.write "暂时没有信息!"
else
do while not rst.eof%>
<tr bgcolor="#FFFFFF">
<td width="50" align="center" height="40"><%=rst("pro_id")%></td>
<td width="250" align="center"><%=rst("pro_title")%></td>
<td width="130" align="center"><%=rst("pro_type")%></td>
<td width="50" align="center"><%=rst("dw")%></font></td>
<td width="53" align="center"><%=rst("sme_langstate")%></font></td>
<td width="30" align="center"><a href="proshow.asp?id=<%=rst("pro_id")%>" target="_blank">详情
</a></font></td>
</tr>
<%rst.movenext
loop
rst.close
end if%>
</table>
</td>
</tr>
</table>
想做成每页20个记录,有数字分页,然后pro_id最好能是自动编号
高手帮忙解决下,拜托啦 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询