0

I am getting an error in my rest api while calling $stmt->get_result().

PHP Fatal error:
Call to undefined method mysqli_stmt::get_result()

The previous questions about this suggest to enable mysqlnd driver. I have done that in my godaddy account, but I'm still getting the error.

public function getAllUserTasks($user_id) {
    $stmt = $this->conn->prepare("SELECT t.* FROM tasks t, user_tasks ut WHERE t.id = ut.task_id AND ut.user_id = ?");
    $stmt->bind_param("i", $user_id);
    $stmt->execute();
    $tasks = $stmt->get_result();
    $stmt->close();
    return $tasks;
}
Manfred Radlwimmer
  • 12,469
  • 13
  • 47
  • 56
Bera
  • 125
  • 1
  • 1
  • 11

0 Answers0