PHP Classes
elePHPant
Icontem

PDO DB Connector: Connect and execute common queries using PDO

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-10-10 (22 hours ago) RSS 2.0 feedNot enough user ratingsTotal: 232 This week: 232All time: 7,547 This week: 1Up
Version License PHP version Categories
db-connector 1.0.3Freely Distributable5.6PHP 5, Databases
Description Author

This class can connect and execute common queries using PDO.

There is a base class that establishes connections to a given database using PDO. It has functions dedicated to connect to MySQL and Microsoft SQL server databases.

A sub-classe provides functions to perform common queries. Currently it can:

- Execute arbitrary SQL queries and return the results in an array
- Query a table and return a single column of results as an array
- Query a table and return all rows as an array
- Execute INSERT or UPDATE queries without prepared values
- Delete table rows that match a condition

Recommendations

tables
Maintain tables in a MySQL database

Picture of Itay Segal
  Performance   Level  
Name: Itay Segal <contact>
Classes: 1 package by
Country: Israel Israel

  Files folder image Files  
File Role Description
Plain text file db.php Class db connector
Plain text file DBMethods.php Class insert/update/delete
Accessible without login Plain text file example_mysql.php Example example for mysql usage

 Version Control Unique User Downloads Download Rankings  
 0%
Total:232
This week:232
All time:7,547
This week:1Up