EDIT: Fixed, something went wrong with some variables, works fine now!
Working code:
if($q = $this->pdo->prepare("UPDATE `ba_keys` SET `times_used` = :used WHERE `betacode` = :beta"))
{
$q->bindValue(':used', 90);
$q->bindValue(':beta', $betacode);
if($q->execute())
{
return 'Execution done.';
} else {
return 'Execution failed.';
}
} else {
return 'Query preparing failed.';
}