0

How do I convert this block of PHP code so that it won't require me to install mysqlnd driver to my server:

public function getAllChatRooms() {
        $stmt = $this->conn->prepare("SELECT * FROM chat_rooms");
        $stmt->execute();
        $tasks = $stmt->get_result();
        $stmt->close();
        return $tasks;
    }

I am trying to upload my backend files to the server. But unfortunately, my server doesn't have mysqlnd driver so I'm getting an error of undefined method for get_result().

Jayson Tamayo
  • 2,311
  • 2
  • 37
  • 75

0 Answers0