1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-29 08:49:50 +02:00

code formatting: 4 spaces -> tabs

This commit is contained in:
David Grudl
2008-05-12 00:30:59 +00:00
parent fd22c55639
commit 7bb5684d71
37 changed files with 5309 additions and 5309 deletions

View File

@@ -6,8 +6,8 @@ require_once '../dibi/dibi.php';
dibi::connect(array(
'driver' => 'sqlite',
'database' => 'sample.sdb',
'driver' => 'sqlite',
'database' => 'sample.sdb',
));
@@ -16,9 +16,9 @@ TABLE products
product_id | title
-----------+----------
1 | Chair
2 | Table
3 | Computer
1 | Chair
2 | Table
3 | Computer
*/
@@ -56,19 +56,19 @@ echo '<hr>';
// fetch row by row
foreach ($res as $n => $row) {
print_r($row);
print_r($row);
}
echo '<hr>';
// fetch row by row with defined offset
foreach ($res->getIterator(2) as $n => $row) {
print_r($row);
print_r($row);
}
// fetch row by row with defined offset and limit
foreach ($res->getIterator(2, 1) as $n => $row) {
print_r($row);
print_r($row);
}