Commit 9142454a authored by Alexander Butenko's avatar Alexander Butenko

update readme with boolean examples

parent 79f9aeaf
......@@ -28,6 +28,7 @@ Insert with functions use
```php
$data = Array(
'login' => 'admin',
'active' => true,
'firstName' => 'John',
'lastName' => 'Doe',
'password' => $db->func('SHA1(?)',Array ("secretpassword+salt")),
......@@ -51,8 +52,8 @@ $data = Array (
'lastName' => 'Tables',
'editCount' => $db->inc(2),
// editCount = editCount + 2;
'editBoolean' => $db->not()
// editBoolean = !editBoolean;
'active' => $db->not()
// active = !active;
);
$db->where('id', 1);
if($db->update('users', $data)) echo 'successfully updated';
......
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