28,406
社区成员
发帖
与我相关
我的任务
分享<...conn.asp..>
<%
Const New_img=8
dim id
id=request.QueryString("ID")
brrTmp=replace(session("cccc"),",","','")
set rs=server.createobject("adodb.recordset")
sql = "select * from [ladladypic] where Username in ('"&brrTmp&"')"
rs.open sql,conn,1,3
%>
<%i=1
do while not rs.EOF and i <12
%>
<div class="s4"> <ul> <a href="usermain.asp">details </a> <a href="sendmail.asp">send mail </a> <a href="addtofile.asp">add to local file </a> </ul>
<ul> <p> <img src="http:\\www.ladlady.com\asp\showimgpicUJ.asp?ID= <%=rs("ID")%>" width='80' height='80' border='0'> </p> </ul>
<%
i=i+1
if i mod 4=0 then response.Write(" <tr> <td>"&rs("Username")&" </td>")
rs.MoveNext
loop
rs.close
%>
</tr>
</table> </td>
<td width="1" valign=top id=demo2> </td>
</tr>
</table>
</div>
<%if New_img >4 then%>
<%end if
Response.Write "no photo for temporary"
%> <table>
<tr>
<%for i = 1 to 12%>
<td></td>
<%
if i mod 4 = 0 then Response.write "</tr><tr>"
next
%>
</tr>
</table>这是每行四列,一共3行的示例,参考一下吧