asp图片换行代码
<%setrs=server.CreateObject("adodb.recordset")rs.open"selecttop15id,name,pic,price1,p...
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select top 15 id,name,pic,price1,price2,viewnum,stock,adddate,spic from product where recommend=2 and stock >= 0 and (recommend<>3 and recommend = 2) order by adddate desc",conn,1,1
if rs.eof and rs.bof then
rs.close
response.write "<table CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=""100%""><tr><td align=center>对不起,请您先到后台添加商品!</td></tr></table>"
else
%> 展开
rs.open "select top 15 id,name,pic,price1,price2,viewnum,stock,adddate,spic from product where recommend=2 and stock >= 0 and (recommend<>3 and recommend = 2) order by adddate desc",conn,1,1
if rs.eof and rs.bof then
rs.close
response.write "<table CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=""100%""><tr><td align=center>对不起,请您先到后台添加商品!</td></tr></table>"
else
%> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询