1. Go to this page and download the library: Download iassasin/fidb 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/ */
iassasin / fidb example snippets
use Iassasin\Fidb\Connection\ConnectionMysql;
$db = new ConnectionMysql($host, $database, $user, $password);
$db->query('INSERT INTO table(num, str, txt) VALUES(%d, %s, %s)',
123, 'string', 'and "text"'); // automatic string escaping
// build queries of any complexity with variables
$bs = $db->select()
->column('str')
->table('table')
->where('num > %d', 30);
foreach ($bs->execute()->fetchAll() as $row){
echo $row['str'];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.