Login   Register  
PHP Classes
elePHPant
Icontem

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of ofertino  >  PdoDB  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: README
Class: PdoDB
Connect to databases and execute queries using PDO
Author: By
Last change:
Date: 2 years ago
Size: 752 bytes
 

Contents

Class file image Download
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