首页 > 网站 > 建站经验 > 正文

asp -指定读取前几条记录

2019-11-02 15:41:23
字体:
来源:转载
供稿:网友

  <%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
    
     %>
         &n

好看的内涵图吧[www.62-6.com/1/nahantu/]
bsp;                              <tr>
                                          <td width="5" height="22" align="left" bgcolor="#FFFFFF"  >&nbsp;</td>
                                          <td width="169" height="27" align="left" bgcolor="#FFFFFF"  ><img src="index_files/dot_email.gif" width="5" height="5" />&nbsp;<a href="<%=rs("file_path")%>" target="_blank" class="prodcut" title="<%=rs("title")%>"><%=rs("title")%></a>&nbsp;&nbsp;
            <% if rs("send_date")=date() then
             response.write("<img src=index_files/new1.gif />")
             else response.write(rs("send_date"))
             end if%></td>
                                          <td width="1" height="5" align="left" bgcolor="#FFFFFF"  >&nbsp;</td>
                                        </tr>
                                        <%
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表