300 points asp call database

Updated on technology 2024-05-09
14 answers
  1. Anonymous users2024-02-09

    Connect to the database:

    set conn="")

    driver=;database=hbmarket;server=database server address; uid=sa;pwd=Password"

    set rs="")

    Show data: An example, you can try it out.

    set rs="")

    sql="select * from marketdata "

    The number of records per page is set to 5

    curpage="curpage")'Pass the POST parameter of the URL to the curpage variable.

    if curpage="" then curpage=1'When the page number pass fails, you skip directly to the first page.

    Specify the curpage variable as the current page.

    rs("displayorder")=rs("displayorder")+1

    Browse transaction history.

    Intermediaries. Belong to the urban area.

    Community. Area.

    Price. Unit price.

    Area segments. Belongs to the real estate.

    Closing date. The precinct to which it belongs

    The region to which it belongs. The partition to which it belongs.

    for i= 1 to

    if then

    exit for

    end if'Use the for loop and the if condition statement to display only the number of entries set by pagesize on a page.

    zhongjie=rs("Intermediaries. ")

    chengqu=rs("Belong to the urban area. ")

    xiaoqu=rs("Community. ")

    mianji=rs("Area. ")

    zongjia=rs("Price. ")

    danjia=rs("Unit price. ")

    mianjiduan=rs("Area segments. ")

    loupan=rs("Belongs to the real estate. ")

    riqi=rs("Closing date. ")

    pianqu=rs("The precinct to which it belongs ")

    daqu=rs("The region to which it belongs. ")

    fenqu=rs("The partition to which it belongs. ")

    zhongjie%>

    chengqu%>

    xiaoqu%>

    mianji%>

    zongjia%>

    danjia%>

    mianjiduan%>

    loupan%>

    riqi%>

    pianqu%>

    daqu%>

    fenqu%>

    if curpage=1 then%>

    Home. %else%>

    Home. %end if%>

    if last page. %else%>

    Last. end if%>

    Current page <%=curpage%> A total of <%=> pages were found<%=> records).

    Sorry, we didn't find any eligible transaction data, please click the "Back" button on your browser to check if your query conditions are correct, thank you! ")

    end if

  2. Anonymous users2024-02-08

    I have to make it up to someone else, and I'm really speechless to you.

    Then I'll make it up for you, but it's done. What a return.

  3. Anonymous users2024-02-07

    I'm speechless, if you know how to asp basics, you will definitely write ...... yourself

  4. Anonymous users2024-02-06

    If you don't understand what exactly you want to call, let me tell you about the principle:

    Link the database on the home page first, link to the database, and then call accordingly according to the table and fields where the document is located! Because your main plane and database table information is not provided, I can't write it to you here**, if you don't understand, add me hi to help you deal with it!

    Thanks for adopting!

  5. Anonymous users2024-02-05

    Browser - Tools - Internat Options - Advanced - Remove the check mark in front of the display friendly http error.

    Then run it again to see the specific error message.

  6. Anonymous users2024-02-04

    id=request("id"This sentence is useless. Comment it out.

    sql="select id from news where"

    sql="select * from news"

    From simple to complex. All right?

  7. Anonymous users2024-02-03

    If you're using the XP operating system, and you're still using Ghost, then I'm introducing you to this.

    You'll be able to solve the problems you're currently experiencing.

  8. Anonymous users2024-02-02

    <%dim pic,pics

    pic="**Address**Address**Address**Address**Address=split(pic,"$$$")for i=0 to ubound(pics)pics(i) &"

    next> if you don't want that **address1|**Address 2 continues to be split by split.

    Put |and the previous **address n to remove it.

  9. Anonymous users2024-02-01

    The two cousins have a Sen Sun username

    select , from info left join thour on order by

  10. Anonymous users2024-01-31

    Upstairs is the correct solution, you should set the number of queried records in the SQL query statement, select top n *

    n indicates the number of calls.

  11. Anonymous users2024-01-30

    Do not change it in this line **, set the number of records to be queried in the previous SQL query statement, or specify the number of records per page of pagination, or modify the loop statement to jump out of the loop when certain conditions are reached.

  12. Anonymous users2024-01-29

    You have to look at the specific ** to know what's going on.

  13. Anonymous users2024-01-28

    sql="select * from info where and pic<> order by desc"order by here should have a field name pic<> appended to it''

  14. Anonymous users2024-01-27

    pic<> you mean it's not empty, right?

    Null is a string that needs to be expressed in quotation marks, and the SQL statement has a double quotation mark on the outside, so you should write it as a pic <>''That's it.

Related questions
7 answers2024-05-09

I'll give you a backend page.

city="city")'This is based on the name attribute of your form. >>>More

10 answers2024-05-09

select * from table name where lab='101'and name='Sulfuric acid', don't know your table structure, so to give you the simplest select, you can talk about your table structure.

12 answers2024-05-09

In order, remember to turn it off when you are finished.

3 answers2024-05-09

If you are using SQL Server, open Enterprise Manager.

1.Create a database. >>>More

10 answers2024-05-09

When the database adds data, it will automatically put the last OID+1, that is to say, you have ten pieces of data, and then after you add a piece of data, the OID will automatically turn back to 11, don't worry about this, if you are talking about reading the last piece of information in the database, there are 2 methods, one is to read the database with SQL statements, and then arrange them in descending order according to the OID, and then the output data is the last record, and the other is to read the database, in ascending order, and then move the pointer to the endto read the last record: >>>More