timesplinter/tsfw-db

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP library which extends PDO

v1.0.3 2015-03-04 14:31 UTC

This package is auto-updated.

Last update: 2020-04-20 15:41:21 UTC


README

A very easy to use database library which extends PDO with some nice and straight-ahead functions.

Example

$dbConnect = new DBConnect('localhost', 'my_db', 'my_db_user', 'secret');
$db = new DBMySQL($dbConnect);

$stmnt = $db->prepare("SELECT ID, name, email FROM user WHERE email LIKE ?");
$users = $db->select($stmnt, array('%@example.com%'));

foreach($users as $user) {
	echo $user->ID , ', ' , $user->name , '(' , $user->email , ')<br>';
}