PHP code example of holtbosse / db
1. Go to this page and download the library: Download holtbosse/db 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/ */
holtbosse / db example snippets
use HoltBosse\DB\DB;
DB::createInstance($dsn, $username, $password);
//utility methods
$result = DB::fetch(...);
$result = DB::fetchAll(...);
$result = DB::exec(...);
$result = DB::getLastInsertedId();
//get the raw pdo object
$pdo = DB::getPdo();