@@ -128,7 +128,6 @@ if ($db->update ('users', $data))
...
@@ -128,7 +128,6 @@ if ($db->update ('users', $data))
else
else
echo'update failed: '.$db->getLastError();
echo'update failed: '.$db->getLastError();
```
```
### Select Query
### Select Query
After any select/get function calls amount or returned rows
After any select/get function calls amount or returned rows
is stored in $count variable
is stored in $count variable
...
@@ -165,7 +164,18 @@ or select one column value or function result
...
@@ -165,7 +164,18 @@ or select one column value or function result
$count=$db->getValue("users","count(*)");
$count=$db->getValue("users","count(*)");
echo"{$count} users found";
echo"{$count} users found";
```
```
### Defining a return type
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