We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3874194 commit 8f15313Copy full SHA for 8f15313
readme.md
@@ -81,8 +81,11 @@ $data = Array (
81
// active = !active;
82
);
83
$db->where ('id', 1);
84
-if($db->update ('users', $data)) echo 'successfully updated';
+$cols = $db->update ('users', $data);
85
+echo $cols . ' records were updated';
86
```
87
+Note that update query will return 0 in case update query will fail AND also in case
88
+where no records were modified.
89
90
### Select Query
91
After any select/get function calls amount or returned rows
0 commit comments