mirror of
https://github.com/dg/dibi.git
synced 2025-07-10 09:06:24 +02:00
update to 0.6
This commit is contained in:
@ -10,7 +10,7 @@ dibi::connect(array(
|
||||
'driver' => 'mysqli',
|
||||
'host' => 'localhost',
|
||||
'username' => 'root',
|
||||
'password' => '***',
|
||||
'password' => 'xxx', // change to real password!
|
||||
'database' => 'test',
|
||||
'charset' => 'utf8',
|
||||
));
|
||||
@ -22,6 +22,7 @@ if (!dibi::isConnected())
|
||||
|
||||
$res = dibi::query('SELECT * FROM table');
|
||||
|
||||
|
||||
// fetch a single value
|
||||
$value = $res->fetchSingle();
|
||||
|
||||
|
Reference in New Issue
Block a user