PHP Classes

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
StarStarStar 58%Total: 1,106 All time: 3,397 This week: 455Up
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.

Picture of abdul rashid
Name: abdul rashid <contact>
Classes: 1 package by
Country: India India
Age: 40
All time rank: 2227134 in India India
Week rank: 360 Up26 in India India Up

Recommendations

PDO wrapper
I need to feed a blog

  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,106
This week:0
All time:3,397
This week:455Up
User Ratings User Comments (3)
 All time
Utility:83%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:79%StarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1523
 
useful
9 years ago (Alok Agrawal)
52%StarStarStar
impressive - especially since it handles the binding with jus...
11 years ago (gen delivery)
70%StarStarStarStar
Very good program.
12 years ago (Jigar Patel)
70%StarStarStarStar