Zend - The PHP Company




Code Gallery: icemac


A Simple Database Abstraction Class  

Type: class library
Added by: icemac
Entered: 15/06/2000
Last modified: 06/12/2007
Rating: **** (21 votes)
Views: 19720
An extremely easy, speedy way to deal with a database from a PHP script. Results are read row by row, as you need them - less demand on memory than loading all result rows into a single monster array =P. You can seek back and forth for the result row you want at any time.

Includes an abstract base class, and a subclass to work with a MySQL db. Write your own subclass of CDBAbstract to work with any PHP-supported database software!

Changes in 1.2: (by Michael Howitz)
- added support for: Commit, Rollback, SetAutoCommit
- added subclass for oracle (OCI8) support

Changes in 1.2.1: (by Dirk Howard)
added subclass for Postgresql (pgsql) support




Search