Please I am stucked in solving the above error. I have seen related questions but I can figure out how to handle it. Your help will be highly appreciated.
public function checkAllowedIp() {
global $pdo;
$check = $pdo->prepare("SELECT * FROM Allowedips WHERE ip = :ip");
$check->bindParam("ip", $this->getIp()); //line 62
$check->execute();
return ($check->rowCount() > 0);
}