PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 372 This week: 1All time: 6,757 This week: 291Up
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

Edit, eliminate, search, and sort table records
Maintain tables in a MySQL database

Picture of Itay Segal
  Performance   Level  
Name: Itay Segal <contact>
Classes: 2 packages by
Country: Israel Israel
Age: ???
All time rank: 320316 in Israel Israel
Week rank: 260 Up1 in Israel Israel Up

  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:372
This week:1
All time:6,757
This week:291Up