标题:求救怎么读出是2列显示
取消只看楼主
copy462829
Rank: 1
等 级:新手上路
帖 子:112
专家分:0
注 册:2007-1-31
 问题点数:0 回复次数:0 
求救怎么读出是2列显示
<table width="540" border="0">
                              
                              
                                  <%  


    set rsty=server.CreateObject("adodb.recordset")
        sqlty="select * from teacherInfo "
        'response.Write sqlty
        'response.end
        rsty.open sqlty,conn,3,1
        
        if not rsty.eof then
           for ii=0 to rsty.recordcount-1
       
           %>
    
  <tr >
    <td width="270"><a href="teacherInfo.asp?classid=<%=rsty("ID")%>"><img src="<%=rsty("imgurl")%>"/ width="270" height="203" border="0"></a>
   
    </td>
   
 
  </tr>
  <tr>
  <td>
  <%=rsty("caption")%>
  </td>
  </tr>
         
         
         
                <%
                        
                 rsty.movenext
              if rsty.eof then exit for
           next        
        end if
    
    rsty.close
    set rsty=Nothing
    

    %>
              
</table>

这样只读出 1列显示 怎么读出显示2列的
搜索更多相关主题的帖子: rsty sqlty response 
2008-03-18 10:55



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-203954-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.128525 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved