Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 419 | All time: 6,404 This week: 96 |
Version | License | PHP version | Categories | |||
connection_dbms 1.1.3 | MIT/X Consortium ... | 5 | PHP 5, Databases, Libraries |
Description | Author | ||||||||
This package can connect to databases using PDO or MySQLi. |
|
PDO Class
I need a class to connect to my db (mysql). Now my code is a old
This package have classes to connection and queries for Database Management System (DBMS [or SGBD, in Portuguese]). Currently it can connect to a database using MySQLi or PDO extension and execute several types of queries from parameters that define tables, fields, values and conditions.
/Autoload Include/
use \Connection\MysqliInstruction;
$mysqli = new MysqliInstruction();
$mysqli->connect();
$resp = $mysqli->select('SELECT * FROM table WHERE id < ?', array('10'));
$resp = $mysqli->generic('DELETE FROM table WHERE id = ?', array('2'));
var_dump($resp);
$mysqli->end();
/Autoload Include/
use \Connection\PDOInstruction;
$pdo = new PDOInstruction();
$pdo->connect();
$resp = $pdo->select('SELECT * FROM table WHERE id < ?', array('10'));
$resp = $pdo->generic('DELETE FROM table WHERE id = ?', array('2'));
var_dump($resp);
$pdo->end();
Files (8) | / | class |
File | Role | Description |
---|---|---|
class.mysqli.instruction.php | Class | Class source |
class.pdo.instruction.php | Class | Class source |
Files (8) | / | dist | / | php |
File | Role | Description | ||
---|---|---|---|---|
connection (2 files) | ||||
autoload.php | Aux. | Auxiliary script |
Files (8) | / | dist | / | php | / | connection |
File | Role | Description |
---|---|---|
MysqliInstruction.php | Class | Class source |
PDOInstruction.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.