Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 420 | All time: 6,397 This week: 57![]() |
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();
![]() |
/ | class |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
/ | dist | / | php |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() ![]() |
Aux. | Auxiliary script |
![]() |
/ | dist | / | php | / | connection |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
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. |
![]() |
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.