求助
asp吧
全部回复
仅看楼主
level 1
gui8rong 楼主
#CCCCCC" bgcolor="#CCCCCC">
     <%
sql="select * from News order by addtime desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
     response.write ""
     rs.close
else
         totalPut=rs.recordcount
         if currentpage<1 then
          currentpage=1
         end if
         if (currentpage-1)*MaxPerPage>totalput then
             if (totalPut mod MaxPerPage)=0 then
                   currentpage= totalPut \ MaxPerPage
             else
                 currentpage= totalPut \ MaxPerPage + 1
             end if
         end if
          if currentPage=1 then
         showContent
         showpage totalput,MaxPerPage,"news.asp"
          else
          if (currentPage-1)*MaxPerPage
     <%do while not rs.eof%>
    
当前没有公告!
2010年03月23日 04点03分 1
level 1
gui8rong 楼主
       <td><a href="news_display.asp?id=<%=rs("id")%>" target="_blank"><%=rs("title")%></a></td>
     </tr>
     <%
i=i+1
if i>=MaxPerPage then exit do
     rs.movenext
loop
rs.close
end sub
%>
   </table>
怎么把30行1列 改成10行3列呢?
原来是
1
2
3
。。。
28
29
30
排列的。
怎么搞成
1                  11                  21
2                  12                  22
3                  13                  23
。。。             。。。               。。。
8                  18                  28
9                  19                  29
10                 20                  30

2010年03月23日 04点03分 2
1