PHP Classes

PDO Singleton: Database access singleton using the PDO extension

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
StarStarStar 45%Total: 1,834 All time: 2,146 This week: 206Up
Version License PHP version Categories
dbconnectpdo 1.0GNU General Publi...5.2PHP 5, Databases, Design Patterns
Description 

Author

This class implements database access singleton using the PDO extension.

It creates a instance of the PDO object that acts as a singleton.

The class provides functions to access a database using the PDO object for executing queries, retrieving the results and managing transactions.

Picture of Wilson Gomes
Name: Wilson Gomes <contact>
Classes: 3 packages by
Country: Canada Canada
Age: ???
All time rank: 32415 in Canada Canada
Week rank: 164 Up7 in Canada Canada Up

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file DBConnect Class DBConnect: uses the Singleton patter to connect to mysql and perform queries
Plain text file Quiz.php Example this Quiz Object uses the PDO Singleton, it's an use example.

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:1,834
This week:0
All time:2,146
This week:206Up
User Ratings User Comments (1)
 All time
Utility:67%StarStarStarStar
Consistency:57%StarStarStar
Documentation:-
Examples:60%StarStarStarStar
Tests:-
Videos:-
Overall:45%StarStarStar
Rank:3300
 
__constructor() cannot return values
13 years ago (Marko)
30%StarStar