PHP Classes

DB Class Singleton: Singleton to access SQL databases using PDO

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 27%Total: 669 All time: 4,832 This week: 488Up
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

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:669
This week:0
All time:4,832
This week:488Up
User Ratings User Comments (1)
 All time
Utility:33%StarStar
Consistency:41%StarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:27%StarStar
Rank:4404