From 62e755d1f130f360571e365815276a0cff17289c Mon Sep 17 00:00:00 2001 From: absurdo Date: Sat, 28 Oct 2023 01:33:08 +0200 Subject: [PATCH] Added get _result method --- src/WPDO.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/WPDO.php b/src/WPDO.php index 0eee0d9..09d8187 100644 --- a/src/WPDO.php +++ b/src/WPDO.php @@ -84,6 +84,12 @@ class WPDO { } + public function get_result() { + + return $this->sth->fetchAll(); + + } + public function select($fields, $where_sql, $values) { $fields=$this->check_fields($fields);