diff options
author | Hannes "Brolaugh" Kindstrommer <me@brolaugh.com> | 2016-03-02 23:12:21 +0100 |
---|---|---|
committer | Hannes "Brolaugh" Kindstrommer <me@brolaugh.com> | 2016-03-02 23:12:21 +0100 |
commit | a890aa633b70eb75dd1bcd2b2c02fd337c710dcd (patch) | |
tree | f8997831d132420c9016d3d00edcc11246baa743 | |
parent | 6190dff0f94b811a581f954361ce9dff0267b642 (diff) | |
download | tasklist-php-a890aa633b70eb75dd1bcd2b2c02fd337c710dcd.zip tasklist-php-a890aa633b70eb75dd1bcd2b2c02fd337c710dcd.tar.gz tasklist-php-a890aa633b70eb75dd1bcd2b2c02fd337c710dcd.tar.bz2 |
Cleaned up after previous commits and added return segment to getTasksWith...
Signed-off-by: Hannes "Brolaugh" Kindstrommer <me@brolaugh.com>
-rw-r--r-- | App/database/Select.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/App/database/Select.php b/App/database/Select.php index 8e46628..ba3a62a 100644 --- a/App/database/Select.php +++ b/App/database/Select.php @@ -106,14 +106,17 @@ class Select extends dbSetup $query .= ")"; } - array_push($secondParam, $param); $secondParam = array_reverse($secondParam); - var_dump($query); - var_dump($param); - var_dump($secondParam); $stmt = $this->getDb()->prepare($query); call_user_func_array(array($stmt, "bind_param"), $secondParam); - var_dump($stmt->execute()); + $stmt->execute(); + $res = $stmt->get_result(); + + $a = array(); + while($row = $res->fetch_object()){ + $a[] = $row; + } + return $a; } } |