$sstmt->get_result()->fetch_assoc(); error: Call to undefined method mysqli_stmt::get_result() [duplicate]

This is not a duplicate question, as in my case i do not know how to implement the responses here

Call to undefined method mysqli_stmt::get_result
using bind_result() & fetch()! or if i have to install something on my host.

I am getting the error from my code here:

    $sql = $sql . " LIMIT 1";
    $sstmt = executeQuery($sql, $conditions);
    $records = $sstmt->get_result()->fetch_assoc();
    return $records;

How to implement this fix in this case, i am new to php