Skip to content

Commit 734c5cc

Browse files
committed
fix docs
1 parent d2c6f2c commit 734c5cc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ Array collection. Collection of dataset coming/fetching from database's table wi
347347
```Php
348348
// Example 1 : Using 1st parameter = WHERE and LIKE condition
349349
// Availables where condition can be used is, where, where_in, or_where_in, where_not_in, or_where_not_in,or_where, having, or_having, like, like_before, like_after, or_like, or_like_before, or_like_after, not_like, not_like_before, not_like_after, or_not_like, or_not_like_before, or_not_like_after
350-
350+
(Flexible Where - Multidimensional Associative array)
351351
$where = array(
352352
'where' => array('id !=' => 1, 'email =' => 'emi@emi.com' ),
353353
//'where_in' => array( 'id'=> [1, 2], 'email' => ['admin@admin.com'] ),
@@ -370,6 +370,18 @@ $where = array(
370370
//'or_not_like_before' => array('name' => 'emi', 'email' => 'emi@emi.com' ),
371371
//'or_not_like_after' => array('name' => 'emi', 'email' => 'emi@emi.com' ),
372372
);
373+
374+
or
375+
376+
(Key-Value paired - Single Associative array)
377+
$where = array('name' => 'emi', 'email' => 'emi@emi.com' )
378+
379+
or
380+
381+
(String - SQL statement)
382+
$where = 'name = "emi" and email = "emi@emi.com"';
383+
384+
373385
$this->user_model->get_all_rows($where); // without specified table name or
374386
$table = "users";
375387
$this->user_model->get_all_rows($where, false, $table);

0 commit comments

Comments
 (0)