Attaches a value of a property in the database to a variable in ASP

Updated on technology 2024-04-19
13 answers
  1. Anonymous users2024-02-08

    on error resume next

    connstr="dbq="+"")+";defaultdir=;driver=;"

    set conn="")

    connstr

    The above is to set up a database connection.

    set rs="select * from wherea=rs("userid")

    a 'Display method 1, the following is 2

    id%>

    Try not to use specific words such as time, menu, etc. when naming variables.

  2. Anonymous users2024-02-07

    It is not displayed because the id is empty, which means that the RS recordset is empty.

  3. Anonymous users2024-02-06

    There are no eligible records, which means that the recordset is empty.

  4. Anonymous users2024-02-05

    What is the value of the 100th digit of the data table?

    dim a reads the database.

    Retrieve the value and assume that it is the title field of a record.

    Then b = trim(rs("title"))a = mid(b,100,1) 'Truncation string: 1 character from the 100th onwards.

    I don't know if that's what you mean.

  5. Anonymous users2024-02-04

    Connect to the database by executing SQL statements.

    If the bianhao field is an integer.

    If the bianhao field is textual.

  6. Anonymous users2024-02-03

    It depends on what kind of functionality you want to implement and how you implement it.

    If you want to read a user's specific settings, then use cookies, so that each user's own settings do not conflict with others, and this thing should be stored on the customer's machine.

    If it is some basic settings of **, and it is more important, and you don't want the user to modify it at will, then use file storage on the server side and call it with fso objects.

  7. Anonymous users2024-02-02

    Stores variables in the session object.

  8. Anonymous users2024-02-01

    dim xx = the value you found out.

    I think the key is that you have to ask how to check, right?

  9. Anonymous users2024-01-31

    The data types should be consistent, and the types are obviously inconsistent

    rs("code")=rcode&""Try it.

  10. Anonymous users2024-01-30

    1.Put the specific error prompts back and forth to better help everyone answer you.

    2.Replace rs ("code"The whole code field is renamed to something else, and it should be OK to test it again.

  11. Anonymous users2024-01-29

    What type of code is in the database?

    If it's a number, if the rcode is a string, it won't work.

  12. Anonymous users2024-01-28

    Mainly look at the data type of a, a, c, the data type is different, the statement connected to a piece is not the same, if the variables a, b are all string variables, and the field c is also a character format, you can use the method upstairs, if it is not necessary to consider the data type, only the data type is unified, so that it can be connected.

  13. Anonymous users2024-01-27

    rs("c")=a&b

    or rs ("c")=a & "," & b

    Since he wants to write like this. Of course rs ("c"It's the text. Then you can connect it.,I'll convert it into a string and store it in.。。

Related questions
20 answers2024-04-19

There is no bottom in select

select top 1 * from table order by field 1 desc" >>>More

2 answers2024-04-19

sql2000

In the start-program-microsoftsqlserver-enterprise manager interface, open the console root file and record all the numbers to (local) (windowsnt), which has the database, data conversion service. Wait, you can right-click "New Database" in "Database" and you're done. >>>More

8 answers2024-04-19

MySQL is unfamiliar, but the idea of database creation is the same: >>>More

15 answers2024-04-19

If the bonus is empty, then your salary plus bonus sal+comm is also empty. >>>More

5 answers2024-04-19

You can use the database modeling tool to create it, you only need to analyze the number of tables and fields in the database. >>>More