Skip to content

Commit 7faeaf5

Browse files
committed
Added more examples to the readme
1 parent 8f578b5 commit 7faeaf5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

readme.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,36 @@ And voila:
7878
+----+---------------+
7979
```
8080

81+
To get the results into a usable array, just use `$oMySQL->Select('admin')` ...for example, doing the following:
82+
83+
`print_r($oMySQL->Select('admin'));`
84+
85+
will yield:
86+
87+
```
88+
Array
89+
(
90+
[0] => Array
91+
(
92+
[id] => 1
93+
[username] => superuser
94+
)
95+
96+
[1] => Array
97+
(
98+
[id] => 2
99+
[username] => a1phanumeric
100+
)
101+
102+
[2] => Array
103+
(
104+
[id] => 3
105+
[username] => Thrackhamator
106+
)
107+
108+
)
109+
```
110+
81111
### License
82112

83113
This program is free software: you can redistribute it and/or modify

0 commit comments

Comments
 (0)