Commit 3ec7818e authored by Alexander Butenko's avatar Alexander Butenko

Add getLastQuery() in readme

parent dd5a93e5
...@@ -227,3 +227,10 @@ Obtain an initialized instance of the class from another class ...@@ -227,3 +227,10 @@ Obtain an initialized instance of the class from another class
```php ```php
$db = MysqliDb::getInstance(); $db = MysqliDb::getInstance();
``` ```
Get last executed SQL query.
Please note that function returns SQL query only for debugging purposes as its execution most likely will fail due missing quotes around char variables.
```php
$db->get('users');
echo "Last executed query was ". $db->getLastQuery();
```
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