PDO Fetch Statement
$query = $db->prepare("SELECT attempts FROM "register" WHERE ip = :ip");
$stmt = $this->connection->prepare($query);
$stmt->bindParam(':ip',$value);
return $stmt->execute(array(':ip' => $value));
$row = $stmt->fetch(PDO::FETCH_ASSOC);
if (!$row) {
return 0;
}
if ($row["IP"] >= NUMBER)
{
if($data["Denied"] == 1)
{
return 1;
}
Hi, this is not working. It won't compare $row["IP"] with the number as
far as I'm thinking. Any help?
No comments:
Post a Comment