ASP读取分类数据
谁能帮我修改下这条代码让他能按分类显示图片回答的好我有加分或加我QQ435401918在线等<tablewidth="640"border="0"align="cente...
谁能帮我修改下这条代码让他能按分类显示图片回答的好我有加分
或加我QQ435401918在线等
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%
sqlh="select top 9 * from bigclass"
set rsh=server.createobject("adodb.recordset")
rsh.open sqlh,conn,1,1
%>
<%a=1
do while not rsh.eof%>
<td height="180"><table width="173" height="187" align="center">
<tr>
<td width="135" height="137"><div align="center">
<table width="159" align="center" >
<tr>
<td><div align="center"><a href="cp.asp?bigclass=<%=rsh("bigclass")%>"><img src="<%=rsh("pic")%>" width="127" height="127" border="0"></a></div></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td height="37"><div align="center"><a href="cp.asp?bigclass=<%=rsh("bigclass")%>"><%=rsh("bigclass")%></a></div></td>
</tr>
</table></td>
<%if a mod 3=0 then
response.Write"<tr></tr>"
end if
rsh.movenext
a=a+1
loop
%>
</tr>
</table> 展开
或加我QQ435401918在线等
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%
sqlh="select top 9 * from bigclass"
set rsh=server.createobject("adodb.recordset")
rsh.open sqlh,conn,1,1
%>
<%a=1
do while not rsh.eof%>
<td height="180"><table width="173" height="187" align="center">
<tr>
<td width="135" height="137"><div align="center">
<table width="159" align="center" >
<tr>
<td><div align="center"><a href="cp.asp?bigclass=<%=rsh("bigclass")%>"><img src="<%=rsh("pic")%>" width="127" height="127" border="0"></a></div></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td height="37"><div align="center"><a href="cp.asp?bigclass=<%=rsh("bigclass")%>"><%=rsh("bigclass")%></a></div></td>
</tr>
</table></td>
<%if a mod 3=0 then
response.Write"<tr></tr>"
end if
rsh.movenext
a=a+1
loop
%>
</tr>
</table> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询