@@ -19,6 +19,7 @@ MysqliDb -- Simple MySQLi wrapper and object mapper with prepared statements
...
@@ -19,6 +19,7 @@ MysqliDb -- Simple MySQLi wrapper and object mapper with prepared statements
**[Has method](#has-method)**
**[Has method](#has-method)**
**[Helper Methods](#helper-methods)**
**[Helper Methods](#helper-methods)**
**[Transaction Helpers](#transaction-helpers)**
**[Transaction Helpers](#transaction-helpers)**
**[Error Helpers](#error-helpers)**
### Installation
### Installation
To utilize this class, first import MysqliDb.php into your project, and require it.
To utilize this class, first import MysqliDb.php into your project, and require it.
...
@@ -621,6 +622,17 @@ if (!$db->insert ('myTable', $insertData)) {
...
@@ -621,6 +622,17 @@ if (!$db->insert ('myTable', $insertData)) {
}
}
```
```
### Error helpers
After you executed a query you have options to check if there was an error. You can get the MySQL error string or the error code for the last executed query.