From 23a42824ef3cb2704308444d68177304deb3c1b1 Mon Sep 17 00:00:00 2001 From: samayo Date: Tue, 7 Feb 2017 12:12:45 +0100 Subject: [PATCH] Update README.md --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d2283d0..d47a20b 100644 --- a/README.md +++ b/README.md @@ -31,25 +31,23 @@ $db = new Db( Examples ----- -```php -##### SELECT + +#### SELECT returns result in `$select` as array format ```php $select = $db->select('SELECT * FROM users WHERE id = ?', [145]); ``` - -##### INSERT +#### INSERT returns `$insert` with the value of `lastInsertId()` on success ```php $insert = $db->insert('INSERT INTO users (lastname) VALUES (?)', ['robin']); ``` - -##### DELETE +#### DELETE returns `$delete` with boolean value on success ```php $delete = $db->delete('DELETE FROM users WHERE id = ?', [456]); ``` - +#### UPDATE returns `$update` with boolean value on success ```php $update = $db->update('UPDATE cars SET color = ? WHERE model = ?', ['blue', 'Toyota']);