PHP Classes

MySQL PDO Connection: Access a MySQL database using PDO

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 247 All time: 7,962 This week: 61Up
Version License PHP version Categories
mysql-pdo-connection 1.0MIT/X Consortium ...5.4PHP 5, Databases


This class can access a MySQL database using PDO.

It can connect to a given MySQL database server and perform several operations like executing prepared queries, manage transactions and convert date formats.

Picture of Carlos Alexandre Zancki Encine
  Performance   Level  
Name: Carlos Alexandre Zancki ... <contact>
Classes: 3 packages by
Country: Brazil Brazil
Age: 36
All time rank: 3115229 in Brazil Brazil
Week rank: 233 Up15 in Brazil Brazil Up


//Example of use the class conncection
$sql = "SELECT * FROM teste";
$stmt = DB::prepare($sql);

  Files folder image Files  
File Role Description
Accessible without login Plain text file config.php Aux. config file for class connection
Plain text file connection.class.php Class class singleton to access database
Accessible without login Plain text file exampleConnection.php Example simple example of implemetation of class connection

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,962
This week:61Up