0

I'am doing this:

    $this->result = $this->stmt->get_result();

    while ($res = $this->result->fetch_assoc()) {

        $data[] = $res;
    }

and I get this:

Call to undefined method mysqli_stmt::get_result()

I've checked in my cpanel that the mysqlnd extension is enabled, but still getting this error

how can I replace this part of code to make it work? can't find the appropiate function

RWRkeSBZ
  • 595
  • 3
  • 11
Nervo Tan
  • 59
  • 6
  • We need the rest of the code to see what you are doing with `$this->stmt` before the failing call. You can also [try this](http://php.net/manual/en/mysqli-stmt.get-result.php#122897). – RWRkeSBZ Oct 13 '18 at 15:27
  • [this answer](https://stackoverflow.com/a/11135291/1491895) at the linked question shows how to replace the code. – Barmar Oct 13 '18 at 15:32

0 Answers0