PHP PDO Singleton Database Wrapper: Execute common MySQL queries using PDO

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 1,101 All time: 3,381 This week: 309Up
Version License PHP version Categories
pdo_db_singleton 1.0GNU General Publi...5.1PHP 5, Databases, Design Patterns
Description Author

This class that can execute common MySQL queries using PDO.

It uses the singleton design pattern to connect to a given MySQL database and execute SELECT, INSERT, UPDATE and DELETE prepared queries from lists of parameters that specify the involved tables, fields, values, conditions, etc..

Queries that return results may return them as a single array or or single value.

Recommendations

PDO wrapper
I need to feed a blog

Picture of abdul rashid
Name: abdul rashid <contact>
Classes: 1 package by
Country: India India
Age: 37
All time rank: 2214136 in India India
Week rank: 601 Up58 in India India Up

 

  Files folder image Files  
File Role Description
Plain text file Database.singleton.php Class Database Class File
Accessible without login Plain text file examples.php Example Example File for usage of the Database class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,101
This week:0
All time:3,381
This week:309Up
User Ratings User Comments (3)
 All time
Utility:90%StarStarStarStarStar
Consistency:95%StarStarStarStarStar
Documentation:-
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:1050
 
useful
7 years ago (Alok Agrawal)
52%StarStarStar
impressive - especially since it handles the binding with jus...
8 years ago (gen delivery)
70%StarStarStarStar
Very good program.
9 years ago (Jigar Patel)
70%StarStarStarStar
 

For more information send a message to info at phpclasses dot org.