PHP code example of thephpeffect / connection-manager
1. Go to this page and download the library: Download thephpeffect/connection-manager library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thephpeffect / connection-manager example snippets
db("default", new mysqli(...));
db("stats", new PDO(...));
$result = db()->query("SELECT * FROM table1");
$statement = db("stats")->prepare("SELECT * FROM table1 WHERE a=? AND b=?");