<?php
public function insertErrorsIntoDB($errors)
{
$STH = $this->pdo->prepare("INSERT INTO 'errors' (name, surname, birth, group, email, mark, emailMatch) VALUES (:name, :surname, :birth, :group, :email, :mark, :emailMatch);");
$STH->bindValue(':name', $errors['name'], PDO::PARAM_INT);
$STH->bindValue(':surname', $errors['surname'], PDO::PARAM_INT);
$STH->bindValue(':birth', $errors['birth'], PDO::PARAM_INT);
$STH->bindValue(':group', $errors['group'], PDO::PARAM_INT);
$STH->bindValue(':email', $errors['email'], PDO::PARAM_INT);
$STH->bindValue(':mark', $errors['mark'], PDO::PARAM_INT);
$STH->bindValue(':emailMatch', $errors['emailMatch'], PDO::PARAM_INT);
$STH->execute();
}
PD9waHAKcHVibGljIGZ1bmN0aW9uIGluc2VydEVycm9yc0ludG9EQigkZXJyb3JzKQogICAgewogICAgICAgICRTVEggPSAkdGhpcy0+cGRvLT5wcmVwYXJlKCJJTlNFUlQgSU5UTyAnZXJyb3JzJyAobmFtZSwgc3VybmFtZSwgYmlydGgsIGdyb3VwLCBlbWFpbCwgbWFyaywgZW1haWxNYXRjaCkgVkFMVUVTICg6bmFtZSwgOnN1cm5hbWUsIDpiaXJ0aCwgOmdyb3VwLCA6ZW1haWwsIDptYXJrLCA6ZW1haWxNYXRjaCk7Iik7CiAgICAgICAgJFNUSC0+YmluZFZhbHVlKCc6bmFtZScsICRlcnJvcnNbJ25hbWUnXSwgUERPOjpQQVJBTV9JTlQpOwogICAgICAgICRTVEgtPmJpbmRWYWx1ZSgnOnN1cm5hbWUnLCAkZXJyb3JzWydzdXJuYW1lJ10sIFBETzo6UEFSQU1fSU5UKTsKICAgICAgICAkU1RILT5iaW5kVmFsdWUoJzpiaXJ0aCcsICRlcnJvcnNbJ2JpcnRoJ10sIFBETzo6UEFSQU1fSU5UKTsKICAgICAgICAkU1RILT5iaW5kVmFsdWUoJzpncm91cCcsICRlcnJvcnNbJ2dyb3VwJ10sIFBETzo6UEFSQU1fSU5UKTsKICAgICAgICAkU1RILT5iaW5kVmFsdWUoJzplbWFpbCcsICRlcnJvcnNbJ2VtYWlsJ10sIFBETzo6UEFSQU1fSU5UKTsKICAgICAgICAkU1RILT5iaW5kVmFsdWUoJzptYXJrJywgJGVycm9yc1snbWFyayddLCBQRE86OlBBUkFNX0lOVCk7CiAgICAgICAgJFNUSC0+YmluZFZhbHVlKCc6ZW1haWxNYXRjaCcsICRlcnJvcnNbJ2VtYWlsTWF0Y2gnXSwgUERPOjpQQVJBTV9JTlQpOwogICAgICAgICRTVEgtPmV4ZWN1dGUoKTsKICAgIH0=