Skip to content

Commit a204875

Browse files
committed
Couple typo fixed in readme
1 parent 1f7b99e commit a204875

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

readme.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $db = new \MysqliDb ('host', 'username', 'password', 'databaseName');
4545

4646
Advanced initialization. If no charset should be set charset, set it to null
4747
```php
48-
$db = new Mysqlidb (Array (
48+
$db = new MysqliDb (Array (
4949
'host' => 'host',
5050
'username' => 'username',
5151
'password' => 'password',
@@ -58,7 +58,7 @@ port and charset params are optional.
5858
Reuse already connected mysqli:
5959
```php
6060
$mysqli = new mysqli ('host', 'username', 'password', 'databaseName');
61-
$db = new Mysqlidb ($mysqli);
61+
$db = new MysqliDb ($mysqli);
6262
```
6363

6464
Its also possible to set a table prefix:
@@ -74,15 +74,15 @@ Simple example
7474
$data = Array ("login" => "admin",
7575
"firstName" => "John",
7676
"lastName" => 'Doe'
77-
)
78-
$id = $db->insert('users', $data);
77+
);
78+
$id = $db->insert ('users', $data);
7979
if($id)
80-
echo 'user was created. Id='.$id;
80+
echo 'user was created. Id=' . $id;
8181
```
8282

8383
Insert with functions use
8484
```php
85-
$data = Array(
85+
$data = Array (
8686
'login' => 'admin',
8787
'active' => true,
8888
'firstName' => 'John',
@@ -151,7 +151,7 @@ $stats = $db->getOne ("users", "sum(id), count(*) as cnt");
151151
echo "total ".$stats['cnt']. "users found";
152152
```
153153

154-
or select one column or function result
154+
or select one column value or function result
155155

156156
```php
157157
$count = $db->getValue ("users", "count(*)");
@@ -202,6 +202,7 @@ print_r ($results); // contains Array of returned rows
202202

203203
### Where Method
204204
This method allows you to specify where parameters of the query.
205+
205206
WARNING: In order to use column to column comparisons only raw where conditions should be used as column name or functions cant be passed as a bind variable.
206207

207208
Regular == operator with variables:

0 commit comments

Comments
 (0)