PHP Classes
elePHPant
Icontem

PdoDB: Connect to databases and execute queries using PDO

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 (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-08-29 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 257 All time: 7,073 This week: 1,133Up
Version License PHP version Categories  
pdodb 1.0Freely Distributable5.0PHP 5, Databases
Description Author  

This class can connect to databases and execute queries using PDO.

It can connect to a database server using a given connection string.

The class can also execute arbitrary SQL queries and retrieves the query results one record at a time until it reaches the end of result records.

It can also measure the time queries take to execute.

Picture of ofertino
Name: ofertino <contact>
Classes: 4 packages by
Country: Poland Poland
Age: ???
All time rank: 225858 in Poland Poland
Week rank: 635 Up20 in Poland Poland Up
Innovation award
Innovation award
Nominee: 1x

Details provided by the author  
README.TXT - PdoDB CLASS V1.0

ATTENTION: YOU MUST CONFIGURE CLASS AND EXAMPLE FILE BEFORE USING IT!

Class:PdoDB

$connect_array - array with database host,dbname,user,password
$set_names - if true, set names for mysql connection
$set_names_type - character encoding for mysql connection
$debug - show debug
$get_time - if true, get all connections time and sql queries time
$insert_delayed - if true, query sql with 'insert delayed' if insert
$version - current script version

FUNCTIONS
query($SQL) - query a given sql to database with pdo
next_record() - fetch next record
f($row) - return a given row name
Eof() - used for multiple fetch records in loops
print_all_time() - print_r all connection times if $get_time was set true
  Files folder image Files  
File Role Description
Plain text file pdodb_class.php Class MAIN CLASS
Accessible without login Plain text file pdodb_example.php Example EXAMPLE FILE
Accessible without login Plain text file readme.txt Doc. README

 Version Control Unique User Downloads Download Rankings  
 0%Total:257All time:7,073
 This week:0This week:1,133Up
 User Comments (1)