PHP code example of oeltimacreation / php-simplequery
1. Go to this page and download the library: Download oeltimacreation/php-simplequery 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/ */
oeltimacreation / php-simplequery example snippets
declare(strict_types=1);
use Oeltima\SimpleQuery\Connection;
use Oeltima\SimpleQuery\Driver;
d INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT NOT NULL, completed INTEGER NOT NULL)',
)->execute();
$id = $db->table('tasks')->insertGetId([
'title' => 'Read the getting-started guide',
'completed' => false,
]);
$task = $db->table('tasks')->where('id', (int) $id)->firstAssociative();
echo $task['title'];
bash
composer