Skip to content

Instantly share code, notes, and snippets.

@Ttech
Created April 16, 2011 00:20
Show Gist options
  • Save Ttech/922691 to your computer and use it in GitHub Desktop.
Save Ttech/922691 to your computer and use it in GitHub Desktop.
public function db_checkKey($key)
{
$query = 'select count(id) from phergie_cache where key=:key';
$statement = $this->db->prepare($query);
$statement->execute(array(':key' => $key));
return (bool) $statement->fetch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment