From 7d8566aa5af174e2c4e2809d2150ec353a155c7c Mon Sep 17 00:00:00 2001 From: EndermanbugZJFC <53002741+Endermanbugzjfc@users.noreply.github.com> Date: Thu, 4 Feb 2021 19:31:04 +0800 Subject: [PATCH] Forgot execute select callback returns an array --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c572841d..76e70e49 100644 --- a/README.md +++ b/README.md @@ -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"]; + } }); ```