Skip to content

Commit

Permalink
Merge pull request #50 from Endermanbugzjfc/patch-1
Browse files Browse the repository at this point in the history
Forgot execute select callback returns an array
  • Loading branch information
SOF3 authored Feb 7, 2021
2 parents c610a4d + 7d8566a commit 50ac73e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ $this->database->executeInsert("example.insert", ["foo" => "sample text", "bar"

// Example of using variable in select statements
$this->database->executeSelect("example.select", ["foo" => "sample text", "bar" => 1], function(array $rows) : void {
echo $rows["bar_column"];
foreach ($rows as $result) {
echo $result["bar_column"];
}
});
```

Expand Down

0 comments on commit 50ac73e

Please sign in to comment.