Skip to content

Commit f352384

Browse files
authored
Update readme.md
added chain loaders in documentation
1 parent 5159467 commit f352384

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

readme.md

+5
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@ $db->where ('id', 1);
446446
$db->where ('login', 'admin');
447447
$results = $db->get ('users');
448448
// Gives: SELECT * FROM users WHERE id=1 AND login='admin';
449+
450+
// Or you can also use Chain Loaders for above query
451+
$results = $db->where ('id', 1)
452+
->where ('login', 'admin')
453+
->get('users');
449454
```
450455

451456
```php

0 commit comments

Comments
 (0)