Download and install ADODB

Source: Internet
Author: User

ADODB is short for Active Data Objects Data Base. Like PDO, it is also a database abstraction layer. It was designed to solve the problem that PHP uses different application interfaces (APIS) to access different databases. Using ADODB makes it easy to port applications between different database systems.

ADODB supports multiple databases, such as MySQL, Oracle, postgre SQL, ms SQL Server, Interbase, Informix, Sybase, and DB2.

Can be downloaded from the official website http://adodb.sourceforge.net, is a compressed package, extract to the appropriate location, introduce the core file "ADODB. Inc. php" in the project can be used.
Sample Code: Include ('ADODB/ADODB. Inc. php ');

Step 3: connect to the database:
1. Determine the database type to connect to: MySQL database example: $ conn = adonewconnection ('mysql ');
2. Connect to the service and select database: $ Conn-> connect ($ db_host, $ db_user, $ db_psw, $ db_name );
3. Close the connection: $ Conn-> close ();

You can use the execute () method to access data, access data in ADODB, and execute SQL statements such as select, insert, update, and delete:
$ Result = $ Conn-> execute ($ query );

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.