1
0
mirror of https://github.com/dg/dibi.git synced 2025-10-20 01:06:25 +02:00

+ DibiResult::fetchAll()

* changed year in headers (2007)
This commit is contained in:
David Grudl
2007-01-08 00:55:11 +00:00
parent 3b8766d376
commit ac980fe8c9
14 changed files with 143 additions and 49 deletions

View File

@@ -6,18 +6,17 @@ require_once '../dibi/dibi.php';
// mysql
dibi::connect(array(
'driver' => 'mysql',
'driver' => 'mysqli',
'host' => 'localhost',
'username' => 'root',
'password' => 'xxx', // change to real password!
'database' => 'test',
'database' => 'dgx',
'charset' => 'utf8',
));
$res = dibi::query('SELECT * FROM [nucleus_item] WHERE [inumber] <> %i', 38);
if (is_error($res))
die('SQL error');
if (!$res) die('SQL error');
// auto-convert this field to integer