Skip to content

Commit 2a0ffc2

Browse files
Noneatmeavbdr
authored andcommitted
Fixed readme headlines (#658)
- Fixed damaged headlines where spaces were missing
1 parent 8e750e6 commit 2a0ffc2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

readme.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
MysqliDb -- 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
257258
You can also load .CSV or .XML data into a specific table.
258259
To 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
282283
To load XML data into a table, you can use the method **loadXML**.
283284
The 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
306307
Use 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
779780
To lock tables, you can use the **lock** method together with **setLockMethod**.
780781
The following example will lock the table **users** for **write** access.
781782
```php

0 commit comments

Comments
 (0)