求助ASP图片调用问题

来源:百度知道 编辑:UC知道 时间:2024/05/24 21:30:46
怎么把这个3列1行的调用改成2列4行啊??
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
sql="select top 3 * from Product where Elite=1 order by articleid desc "
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
%>
<table width="169" height="203" border="0" align="center" cellpadding="0" cellspacing="8" >
<tr>
<%do while not rs.eof%>
<td width="140" height="187">
<table width="158" height="152" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr>
<td width="146" height="110" align="center" ><a href="ArticleShow.asp?ArticleID=<%=rs("articleid")%>">

这样写吧!楼上的没有试过,不过看样子好像!!!有点问题..也浪费了代码

<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select top 8 * from Product where Elite=1 order by articleid desc",conn,1,1
if rs.eof and rs.bof then
response.write "无"
'response.End
else
%>
<%
if not rs.eof then
i=1
do while not rs.eof%>
<td valign="top" > <table width="169" height="203" cellpadding="0" cellspacing="0">
<tr>
<td width="36%" align="center" valign="middle"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
&