How to use ASP or Jsp,flash to read and display all the records in a table in a database _flash as

Source: Internet
Author: User
So, I write the key statement, you modify the integration
asp: Database connections I'm not going to write it.
Copy Code code as follows:
<!--  #include  file= "conn.asp"  --> 
<%  
rs.open  "Select * from table1",conn,1,1 
for i=1 to  rs.recordcount 
Response.Write ("vlue1" &i& "=" &rs ("Field 1") & "&" & "value2" &i& "=" &rs ("Field 2") & "&")  
rs.movenext 
next 
Response.Write ("total=" Rs.recordcount)  
rs.close 
conn.close 
%> 


flash: 
V Ar my_lv:loadvars=new loadvars (); 
My_lv.load ("test.asp"); 
My_lv.onload=function ( SUC) { 
if (suc) { 
for (i=0;i<my_lv.total;i++) { 
Trace (my_lv["value1" + (i+1)]);  trace (my_lv["value2" + (i+1)); 

}else{ 
Trace ("error"); 

}&N Bsp

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.