Skip to content

Commit

Permalink
Advertise the newer, safer-by-default Factory method.
Browse files Browse the repository at this point in the history
Thanks @colshrapnel!
  • Loading branch information
paragonie-security committed Mar 12, 2019
1 parent 2b91dd1 commit 67ee076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ we end up repeating ourselves a lot.
### The EasyDB Solution

```php
$db = \ParagonIE\EasyDB\Factory::create(
$db = \ParagonIE\EasyDB\Factory::fromArray([
'mysql:host=localhost;dbname=something',
'username',
'putastrongpasswordhere'
);
]);

$rows = $db->run('SELECT * FROM comments WHERE blogpostid = ? ORDER BY created ASC', $_GET['blogpostid']);
foreach ($rows as $row) {
Expand Down

0 comments on commit 67ee076

Please sign in to comment.