一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

asp 指定读取前几条记录

时间:2010-04-19 编辑:简简单单 来源:一聚教程网

     <%dim sqlnote2
     sqlnote2="select top 8 * from note1 order by id desc"
     call opendb()
     rs.open sqlnote2,conn,1,1
     if not rs.eof then
     do while not rs.eof
     
     %>
                                       
                                           
                                           " target="_blank" class="prodcut" title="<%=rs("title")%>"><%=rs("title")%>  
            <% if rs("send_date")=date() then
             response.write("")
             else response.write(rs("send_date"))
             end if%>
                                           
                                       
                                        <%
     rs.movenext
     loop%>
                                       
                                          asp教程" class="page" >更多信息...   
                                       
                                        <%
     else
     %>
                                       
                                          暂时没有通知通告
                                       
                                        <%
     end if
     call closedb()
     %>

本站原创转载注明 www.111com.net/asp/asper.html

热门栏目