1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

throwing exception on connect

This commit is contained in:
David Grudl
2006-11-13 06:32:16 +00:00
parent 11b294be44
commit f447a03c96
11 changed files with 78 additions and 92 deletions

View File

@@ -7,7 +7,7 @@ dibi::$debug = true;
// mysql
dibi::connect(array(
'driver' => 'mysqli',
'driver' => 'mysql',
'host' => 'localhost',
'username' => 'root',
'password' => 'xxx', // change to real password!
@@ -16,10 +16,6 @@ dibi::connect(array(
));
if (!dibi::isConnected())
die('Not connected');
$res = dibi::query('SELECT * FROM table');