Commit 2a0ffc22 authored by Noneatme's avatar Noneatme Committed by Alexander Butenko

Fixed readme headlines (#658)

- Fixed damaged headlines where spaces were missing
parent 8e750e65
MysqliDb -- Simple MySQLi wrapper and object mapper with prepared statements MysqliDb -- Simple MySQLi wrapper and object mapper with prepared statements
<hr> <hr>
### Table of Contents ### Table of Contents
**[Initialization](#initialization)** **[Initialization](#initialization)**
...@@ -253,7 +254,7 @@ foreach ($logins as $login) ...@@ -253,7 +254,7 @@ foreach ($logins as $login)
echo $login; echo $login;
``` ```
###Insert Data ### Insert Data
You can also load .CSV or .XML data into a specific table. You can also load .CSV or .XML data into a specific table.
To insert .csv data, use the following syntax: To insert .csv data, use the following syntax:
```php ```php
...@@ -278,7 +279,7 @@ $options = Array("fieldChar" => ';', "lineChar" => '\r\n', "linesToIgnore" => 1) ...@@ -278,7 +279,7 @@ $options = Array("fieldChar" => ';', "lineChar" => '\r\n', "linesToIgnore" => 1)
$db->loadData("users", "/home/john/file.csv", $options); $db->loadData("users", "/home/john/file.csv", $options);
``` ```
###Insert XML ### Insert XML
To load XML data into a table, you can use the method **loadXML**. To load XML data into a table, you can use the method **loadXML**.
The syntax is smillar to the loadData syntax. The syntax is smillar to the loadData syntax.
```php ```php
...@@ -302,7 +303,7 @@ $path_to_file = "/home/john/file.xml"; ...@@ -302,7 +303,7 @@ $path_to_file = "/home/john/file.xml";
$db->loadXML("users", $path_to_file, $options); $db->loadXML("users", $path_to_file, $options);
``` ```
###Pagination ### Pagination
Use paginate() instead of get() to fetch paginated result Use paginate() instead of get() to fetch paginated result
```php ```php
$page = 1; $page = 1;
...@@ -669,7 +670,7 @@ print_r ($products); ...@@ -669,7 +670,7 @@ print_r ($products);
// SELECT u.login, p.productName FROM products p LEFT JOIN (SELECT * FROM t_users WHERE active = 1) u on p.userId=u.id; // SELECT u.login, p.productName FROM products p LEFT JOIN (SELECT * FROM t_users WHERE active = 1) u on p.userId=u.id;
``` ```
###EXISTS / NOT EXISTS condition ### EXISTS / NOT EXISTS condition
```php ```php
$sub = $db->subQuery(); $sub = $db->subQuery();
$sub->where("company", 'testCompany'); $sub->where("company", 'testCompany');
...@@ -775,7 +776,7 @@ print_r ($db->trace); ...@@ -775,7 +776,7 @@ print_r ($db->trace);
``` ```
##Table Locking ### Table Locking
To lock tables, you can use the **lock** method together with **setLockMethod**. To lock tables, you can use the **lock** method together with **setLockMethod**.
The following example will lock the table **users** for **write** access. The following example will lock the table **users** for **write** access.
```php ```php
......
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