Login   Register  
PHP Classes
elePHPant
Icontem

DB Class Singleton: Singleton to access SQL databases using PDO

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-06-29 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 620 All time: 4,656 This week: 1,542Up
Version License PHP version Categories  
db-class-singleton 1.0Freely Distributable5.0Databases
Description Author  

This class implements the singleton design pattern to access SQL databases using PDO.

It create a single instance of the class that can connect to a given database and execute SQL queries returning the whole results in a single array.

The class can also count the number of rows in given table and return the last inserted record identifier.

Picture of fender bender
Name: fender bender <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: ???
All time rank: 2689121 in United Kingdom United Kingdom
Week rank: 1763 Up80 in United Kingdom United Kingdom Up

  Files folder image Files  
File Role Description
Plain text file db.class.php Class DB class
Accessible without login Plain text file example.php Example demo

 Version Control Unique User Downloads Download Rankings  
 0%Total:620All time:4,656
 This week:0This week:1,542Up
 User Comments (1)