PHP code example of blitz-php / database
1. Go to this page and download the library: Download blitz-php/database 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/ */
blitz-php / database example snippets
$database = \BlitzPHP\Database\Database::connection([
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'database',
'username' => 'root',
'password' => 'password',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
]);
$database->query('SELECT * FROM categories');
$builder =
composer