PHP Classes

Base DB: Base class for SQL database access abstraction

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-12-24 (5 years ago) RSS 2.0 feedStarStarStarStar 73%Total: 2,255 This week: 3All time: 1,635 This week: 596Up
Version License PHP version Categories  
base_db 57GNU Lesser Genera...5.0Databases
Description Author  

This is a base class for implementing an SQL database access abstraction.

It provides an easy way to deal with databases. it will escape your values by using smart question marks parameters in conditions strings, return most of result in php array instead of resource result set (but you still can access the resource if you really want it) and will assist you in most common databases operation such as establishing database connections, opening a database, quoting a string value, executing a query, retrieving query results as an array, listing the database tables, get the keys of a table, optimizing a table, retrieving the last error that occurred, etc..
It also permit to work on multiple databases and to get unique instances of database connection in a simple way "db::getInstance()"

It also include a class dbProfiler to help you profiling your queries.

Picture of Jonathan Gotti
Name: Jonathan Gotti is available for providing paid consulting. Contact Jonathan Gotti .
Classes: 13 packages by
Country: France France
Age: 38
All time rank: 694 in France France
Week rank: 143 Down11 in France France Down
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files  
File Role Description
Accessible without login Plain text file class-db.php Class base abstraction class
Plain text file class-sampledb.php Example example for extended base_db
HTML file classdb.html Doc. Documentation (by Doxygen)
HTML file classsampledb.html Doc. Documentation of an extended db class
Plain text file README Doc. readme file
Plain text file slicesample.php Example easy pagination sample

 Version Control Reuses Unique User Downloads Download Rankings  
 0%2Total:2,255All time:1,635
 This week:3This week:596Up
 User Ratings  
 All time