fork download
  1. <?php
  2. public function insertErrorsIntoDB($errors)
  3. {
  4. $STH = $this->pdo->prepare("INSERT INTO 'errors' (name, surname, birth, group, email, mark, emailMatch) VALUES (:name, :surname, :birth, :group, :email, :mark, :emailMatch);");
  5. $STH->bindValue(':name', $errors['name'], PDO::PARAM_INT);
  6. $STH->bindValue(':surname', $errors['surname'], PDO::PARAM_INT);
  7. $STH->bindValue(':birth', $errors['birth'], PDO::PARAM_INT);
  8. $STH->bindValue(':group', $errors['group'], PDO::PARAM_INT);
  9. $STH->bindValue(':email', $errors['email'], PDO::PARAM_INT);
  10. $STH->bindValue(':mark', $errors['mark'], PDO::PARAM_INT);
  11. $STH->bindValue(':emailMatch', $errors['emailMatch'], PDO::PARAM_INT);
  12. $STH->execute();
  13. }
Runtime error #stdin #stdout #stderr 0.01s 24400KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected 'public' (T_PUBLIC) in /home/cOaDKU/prog.php on line 2