Skip to content

Commit eb1108c

Browse files
committed
Update README.md
1 parent cca7f4e commit eb1108c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Example
6767

6868
```php
6969
// Creates an database table
70-
create('abc_db',
70+
create('profile',
7171
// and with database column name, datatype
7272
// data types are global CONSTANTS
7373
// SEQUENCE|AUTO is placeholder tag, to be replaced with the proper SQL drivers auto number sequencer word.
@@ -133,11 +133,11 @@ $values = [];
133133
$values['name'] = $user;
134134
$values['email'] = $address;
135135
$values['phone'] = $number;
136-
$db->insert('abc_db', $values);
137-
$db->insert('abc_db', ['name' => 'john john', 'email' => 'john@email', 'phone' => 123456]);
136+
$db->insert('profile', $values);
137+
$db->insert('profile', ['name' => 'john john', 'email' => 'john@email', 'phone' => 123456]);
138138

139139
// returns result set given the table name, column fields, and ...conditionals
140-
$result = $db->selecting('abc_db', 'phone',
140+
$result = $db->selecting('profile', 'phone',
141141
// ...conditionals are comparison operators($column, $value, _COMBINE_EXPRESSION_CONSTANTS)
142142
// these operators are functions returning arrays:
143143
// eq(), neq(), ne(), lt(), lte(),
@@ -152,7 +152,7 @@ foreach ($result as $row) {
152152
echo $row->phone);
153153
}
154154

155-
$result = $db->selecting('abc_db', 'name, email',
155+
$result = $db->selecting('profile', 'name, email',
156156
// Conditionals can also be called, stacked with other functions like:
157157
// innerJoin(), leftJoin(), rightJoin(), fullJoin()
158158
// as (leftTable, rightTable, leftColumn, rightColumn, equal condition),
@@ -178,7 +178,7 @@ foreach ($result as $row) {
178178
#### Example for using prepare statements directly, no shortcut SQL methods used
179179

180180
```php
181-
$db->query_prepared('INSERT INTO abc_db( name, email, phone) VALUES( ?, ?, ? )', [$user, $address, $number]);
181+
$db->query_prepared('INSERT INTO profile( name, email, phone) VALUES( ?, ?, ? )', [$user, $address, $number]);
182182
```
183183

184184
## For Authors and **[Contributors](https://github.com/ezSQL/ezsql/blob/master/CONTRIBUTORS.md)**

0 commit comments

Comments
 (0)