11MysqliDb -- Simple MySQLi wrapper and object mapper with prepared statements
22<hr >
3+
34### Table of Contents
45
56** [ Initialization] ( #initialization ) **
@@ -253,7 +254,7 @@ foreach ($logins as $login)
253254 echo $login;
254255```
255256
256- ###Insert Data
257+ ### Insert Data
257258You can also load .CSV or .XML data into a specific table.
258259To insert .csv data, use the following syntax:
259260``` php
@@ -278,7 +279,7 @@ $options = Array("fieldChar" => ';', "lineChar" => '\r\n', "linesToIgnore" => 1)
278279$db->loadData("users", "/home/john/file.csv", $options);
279280```
280281
281- ###Insert XML
282+ ### Insert XML
282283To load XML data into a table, you can use the method ** loadXML** .
283284The syntax is smillar to the loadData syntax.
284285``` php
@@ -302,7 +303,7 @@ $path_to_file = "/home/john/file.xml";
302303$db->loadXML("users", $path_to_file, $options);
303304```
304305
305- ###Pagination
306+ ### Pagination
306307Use paginate() instead of get() to fetch paginated result
307308``` php
308309$page = 1;
@@ -669,7 +670,7 @@ print_r ($products);
669670// SELECT u.login, p.productName FROM products p LEFT JOIN (SELECT * FROM t_users WHERE active = 1) u on p.userId=u.id;
670671```
671672
672- ###EXISTS / NOT EXISTS condition
673+ ### EXISTS / NOT EXISTS condition
673674``` php
674675$sub = $db->subQuery();
675676 $sub->where("company", 'testCompany');
@@ -775,7 +776,7 @@ print_r ($db->trace);
775776
776777```
777778
778- ##Table Locking
779+ ### Table Locking
779780To lock tables, you can use the ** lock** method together with ** setLockMethod** .
780781The following example will lock the table ** users** for ** write** access.
781782``` php
0 commit comments