ASP starts reading data from the first few read data in ASP Skip

Source: Internet
Author: User
ASP starts reading data from the first few of the ASP skips a few read data <%set Rs=server.  CreateObject ("Adodb.recordset") sql= "select Top * from Jsyllh_xxnews where Smt_key=1 and smt_newssort=41 order by smt_id Desc "Rs.Open sql,conn,1,1if rs.eof Then Response.Write" No news "elsei=0do while not rs.eofi=i+1if i >=6 then ' read from the first few Take, write a few%><li> <a href= "/nr/xxnews/<%=rs (" smt_id ")%>.html" target= "_blank" title= "<%=rs (" SMT_ Title ")%>" ><%=rs ("Smt_title")%></a></li> <%end ifrs.movenextloopend ifrs.close%>

After I test, absolutely can use normally.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.