My following php MYSQLi is not working, PHP version 5.9
$query = $conn->prepare("SELECT * FROM users WHERE token= ? LIMIT 1");
$query->bind_param('s',$cvalue);
$query->execute();
$result = $query->get_result();
$row = $result->fetch_assoc();
It's giving me the following error:
Fatal error: Call to undefined method mysqli_stmt::get_result()
Where is the error? How can I fix it? Thanks