Skip to content

Commit e1b3c99

Browse files
committed
readme update
1 parent 1f5b5cc commit e1b3c99

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

README.md

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
This library required when you need to create MySQL Query using classes and arrays. This Library only for creating Select Query For MySQL Databse.
44

5-
i have used SqlFormatter Library built by Jeremy Dorn <jeremy@jeremydorn.com> to format query in browser.
5+
i have used SqlFormatter Library built by **Jeremy Dorn** <jeremy@jeremydorn.com> to format query in browser.
66

7-
Feel Free to comment and if any one want to countribute then please contact me Hardeep Singh <hardeepvicky1@gmai.com>.
7+
Feel Free to comment and if any one want to countribute then please contact me **Hardeep Singh** Contact me at <hardeepvicky1@gmail.com> OR at <hardeep.singh417@gmail.com>
88

99
## Installation
1010

@@ -50,12 +50,12 @@ echo $q;
5050

5151
## Output
5252

53-
SELECT
54-
C.*
55-
FROM
56-
`countries` AS C
57-
WHERE
58-
(C.name like '%india%')
53+
SELECT
54+
C.*
55+
FROM
56+
`countries` AS C
57+
WHERE
58+
(C.name like '%india%')
5959

6060
## Use with Complex Conditions
6161

@@ -98,6 +98,7 @@ WHERE
9898
)
9999
100100
```
101+
101102
## Example with Join
102103

103104
```php
@@ -205,8 +206,8 @@ $join_state->field("name");
205206
$querySelect->join($join_state);
206207

207208
$querySelect->field("id");
208-
$querySelect->field("name");
209-
209+
$querySelect->field("name");
210+
210211
$q = $querySelect->get();
211212

212213
```
@@ -240,8 +241,8 @@ $join_state->field("name");
240241
$querySelect->join($join_state);
241242

242243
$querySelect->field("id");
243-
$querySelect->field("name");
244-
244+
$querySelect->field("name");
245+
245246
$q = $querySelect->get();
246247
```
247248

@@ -327,7 +328,7 @@ $querySelect->setHaving(Condition::init("AND")->add("state_count", 5, ">"));
327328
$querySelect->order("state_count", "desc");
328329

329330
$querySelect->setLimit(10);
330-
331+
331332
$q = $querySelect->get();
332333

333334
echo SqlFormatter::format($q);
@@ -378,7 +379,7 @@ $querySelect->groupBy("C.id");
378379
$querySelect->order("same_name_count", "DESC");
379380

380381
$querySelect->setHaving(Condition::init("AND")->add("C__name", "%india%", "like"));
381-
382+
382383
$q = $querySelect->get();
383384
```
384385

@@ -400,3 +401,15 @@ HAVING
400401
ORDER BY
401402
same_name_count DESC
402403
```
404+
405+
## 🚀 About Me
406+
407+
I'm a PHP Developer creating web applications and php libraries since 2014. Contact me at <hardeepvicky1@gmail.com> OR at <hardeep.singh417@gmail.com>
408+
409+
## License
410+
411+
[MIT](https://choosealicense.com/licenses/mit/)
412+
413+
## Authors
414+
415+
- [Hardeep Singh](https://www.github.com/hardeepvicky)

0 commit comments

Comments
 (0)