PHP code example of robinksp / simple-query-builder
1. Go to this page and download the library: Download robinksp/simple-query-builder 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/ */
robinksp / simple-query-builder example snippets
ini_set('display_errors', 1);
use robinksp\querybuilder\Connection;
use robinksp\querybuilder\Query;
base' => 'test'
];
$connection = (new Connection($config))::connect();
$selectQuery = (new Query($connection))
->table('award_icons')
->select('*')
->where('id', '=', 33)
->get();
echo '<pre>';
print_r($selectQuery);
Array
(
[0] => Array
(
[id] => 33
[title] => Award
[icon] => award
[created_at] => 2023-10-09 14:59:17
[updated_at] => 2023-10-09 14:59:17
)
)