Login   Register  
PHP Classes
elePHPant
Icontem

Simple and small DB class: Access to a MySQL database using a singleton

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 (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-09-04 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 476 All time: 5,383 This week: 1,638Up
Version License PHP version Categories  
simple-db-class 1.0GNU General Public Lice...5PHP 5, Databases, Design Patterns
Description Author  

This class can be used to access to a MySQL database using a singleton.

It creates a single instance of the class that can establish MySQL database connections, execute SQL queries, retrieve the number of result rows and retrieve the results in a single array.

Picture of sifat kabir
Name: sifat kabir <contact>
Classes: 2 packages by
Country: Bangladesh Bangladesh
Age: 31
All time rank: 192630 in Bangladesh Bangladesh
Week rank: 797 Up26 in Bangladesh Bangladesh Up

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

 Version Control Unique User Downloads Download Rankings  
 0%Total:476All time:5,383
 This week:0This week:1,638Up
 User Comments (2)  
 
Very simple and compact class.
3 years ago (Jacek Lukasiewicz)
32%StarStar
Tt's a good example of singleton pattern.
3 years ago (Artur Graniszewski)
57%StarStarStar