mirror of
https://github.com/dg/dibi.git
synced 2025-08-03 12:47:33 +02:00
used PHP 5.4 syntax
This commit is contained in:
@@ -9,18 +9,18 @@ require __DIR__ . '/../src/loader.php';
|
||||
date_default_timezone_set('Europe/Prague');
|
||||
|
||||
|
||||
dibi::connect(array(
|
||||
dibi::connect([
|
||||
'driver' => 'sqlite3',
|
||||
'database' => 'data/sample.s3db',
|
||||
));
|
||||
]);
|
||||
|
||||
|
||||
$id = 10;
|
||||
$record = array(
|
||||
$record = [
|
||||
'title' => 'Super product',
|
||||
'price' => 318,
|
||||
'active' => TRUE,
|
||||
);
|
||||
];
|
||||
|
||||
// SELECT ...
|
||||
dibi::select('product_id')->as('id')
|
||||
|
Reference in New Issue
Block a user