医学培训心得体会总结:简单ASP程序修改。在线求助!感谢!

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/28 06:47:37
<%
SQL="Select * from fengcai_sale_net order by id desc"
Set rs=Server.CreateObject("ADODB.RecordSet")
rs.Open SQL,con,1,1
rs.PageSize=6
count=1
if Request("count")<>"" then
count=Cint(Request("count"))
if count<1 then
count=1
end if
if count>rs.PageCount then
count=rs.PageCount
end if
end if
if not rs.Bof and not rs.Eof then
rs.ABSolutePage=count
end if
pagecountx=rs.pagecount
for i=0 to rs.PageSize-1
if ((count-1)*rs.PageSize)+i>rs.RecordCount-1 then
exit for
end if
%>
<table width="553" height="239" border="1">
<tr>
<td width="343"><a href="<%=rs("photo")%>"><img border="0" src="<%=rs("photo")%>" width="270" height="217"></a><a href="<%=rs("photo")%>"></a></td>
</tr>
</table>
<%

这段代码一页显示六张图片.每一行只显示一张图片。

我要一行显示两张图片要怎么办啊?那个知道。非常感谢!

6月22日 15:20 jsp空间是不能使用asp的,因为一般来说jsp空间是使用linux系统,通常情况下linux是不支持asp的