mirror of
https://github.com/dg/dibi.git
synced 2025-08-29 08:49:50 +02:00
* modified DibiException (getDbError, ...)
* fix dibi::dumpResult()
This commit is contained in:
@@ -3,12 +3,13 @@
|
||||
require_once '../dibi/dibi.php';
|
||||
|
||||
|
||||
// connects to mysqli
|
||||
// CHANGE TO REAL PARAMETERS!
|
||||
dibi::connect(array(
|
||||
'driver' => 'mysql',
|
||||
'host' => 'localhost',
|
||||
'username' => 'root',
|
||||
'password' => 'xxx', // change to real password!
|
||||
'password' => 'xxx',
|
||||
'database' => 'dibi',
|
||||
'charset' => 'utf8',
|
||||
));
|
||||
|
||||
@@ -29,4 +30,3 @@ dibi::addSubst('', 'my_');
|
||||
dibi::test("UPDATE [database.::table] SET [text]='Hello World'");
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user