Skip to content

Commit faee21e

Browse files
authored
updated readme (ThingEngineer#687)
updated readme
1 parent 687780a commit faee21e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

readme.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ $results = $db->get('users');
490490
// Gives: SELECT * FROM users WHERE id IN (1, 5, 27, -1, 'd');
491491
```
492492

493-
OR CASE
493+
OR CASE:
494494
```php
495495
$db->where ('firstName', 'John');
496496
$db->orWhere ('firstName', 'Peter');
@@ -505,6 +505,13 @@ $results = $db->get("users");
505505
// Gives: SELECT * FROM users where lastName IS NOT NULL
506506
```
507507

508+
LIKE comparison:
509+
```php
510+
$db->where ("fullName", 'John%', 'like');
511+
$results = $db->get("users");
512+
// Gives: SELECT * FROM users where fullName like 'John%'
513+
```
514+
508515
Also you can use raw where conditions:
509516
```php
510517
$db->where ("id != companyId");

0 commit comments

Comments
 (0)