Commit 8f15313e authored by Alexander Butenko's avatar Alexander Butenko

clearify readme on update() function

parent 38741949
......@@ -81,8 +81,11 @@ $data = Array (
// active = !active;
);
$db->where ('id', 1);
if($db->update ('users', $data)) echo 'successfully updated';
$cols = $db->update ('users', $data);
echo $cols . ' records were updated';
```
Note that update query will return 0 in case update query will fail AND also in case
where no records were modified.
### Select Query
After any select/get function calls amount or returned rows
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment