You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,6 @@ if ($db->update ('users', $data))
128
128
else
129
129
echo 'update failed: ' . $db->getLastError();
130
130
```
131
-
132
131
### Select Query
133
132
After any select/get function calls amount or returned rows
134
133
is stored in $count variable
@@ -165,7 +164,18 @@ or select one column value or function result
165
164
$count = $db->getValue ("users", "count(*)");
166
165
echo "{$count} users found";
167
166
```
168
-
167
+
### Defining a return type
168
+
MysqliDb can return result in 3 different formats: Array of Array, Array of Objects and a Json string. To select a return type use ArrayBuilder(), ObjectBuilder() and JsonBuilder() methods. Note that ArrayBuilder() is a default return type
0 commit comments