No description or website provided.
Pull request Compare This branch is 9 commits ahead, 9 commits behind bitweaver:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

ADODB Library for PHP5

(c) 2000-2011 John Lim (

Released under both BSD and GNU Lesser GPL library license. This means you can use it in proprietary products.


I am currently maintaining this for use in legacy applications, and would highly recommend researching Doctrine DBAL.

This is not the official repository.


PHP's database access functions are not standardised. This creates a need for a database class library to hide the differences between the different databases (encapsulate the differences) so we can easily switch databases.

We currently support MySQL, Interbase, Sybase, PostgreSQL, Oracle, Microsoft SQL server, Foxpro ODBC, Access ODBC, Informix, DB2, Sybase SQL Anywhere, generic ODBC and Microsoft's ADO.

We hope more people will contribute drivers to support other databases.

Documentation and Examples

Refer to the adodb/docs directory for full documentation and examples. There is also a tutorial tute.htm that contrasts ADODB code with mysql code.

Files is the main file. You need to include only this file.

Adodb-*.inc.php are the database specific driver code.

Test.php contains a list of test commands to exercise the class library.

Adodb-session.php is the PHP4 session handling code. contains the list of databases to apply the tests on.

Benchmark.php is a simple benchmark to test the throughput of a simple SELECT statement for databases described in The benchmark tables are created in test.php.

readme.htm is the main documentation.

tute.htm is the tutorial.

More Info

For more information, including installation see readme.htm or visit

Feature Requests and Bug Reports

Email to