ADOdb is a database abstraction library for PHP. It currently supports the following databases: MySQL, PostgreSQL, Interbase, Firebird, Informix, Oracle, MS SQL, Foxpro, Access, ADO, Sybase, FrontBase, DB2, SAP DB, SQLite, Netezza, LDAP, and generic ODBC, ODBTP. The Sybase, Informix, FrontBase and PostgreSQL, Netezza, LDAP, ODBTP drivers are community contributions.
The database interface is accessed via the wrapper class eaDB located in code/base/db.class.php. The wrapper provides basic set-up procedures and database functions.
It’s integrated by:
require_once('code/base/db.class.php') $db = new eaDB($conf['dsn']);
$conf[‘dsn’] is set in config/config.php
$conf['dsn'] = 'driver://user:password@server/database';
driver ..... type of database - e.g. <i>mysql</i> user ....... the username of the database account password ... the password of the database account server ..... the server, where the database is located - e.g. <i>localhost</i> database ... the name of the database - e.g. <i>eageier</i>
The ADOdb library will be bundled with production releases.
If the ADOdb code is missing in your ea-Geier distribution, please download it from the ADOdb homepage.
Unzip the code into the 3party/adodb/ folder – e.g.:
and make sure the eaADODB_DIR definition is configured properly. To do this, open the the file code/config.php. Look for eaADODB_DIR and change the value to the name of the folder you have just uploaded – e.g.:
Since the ADOdb library is not E_STRICT compatible we disabled E_STRICT for the complete project.