<?php
public function makeNewStud($name, $surname, $sex, $groupNumber, $email, $mark, $local, $birthDate)
{
$DBH = $this->makeConnect();
$data = array($name, $surname, $sex, $groupNumber, $email, $mark, $local, $birthDate); $STH = $DBH->prepare("INSERT INTO Students (Name, Surname, Sex, GroupNumber, Email, Mark, Local, BirthDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?);");
$STH->execute($data);
}
PD9waHAKcHVibGljIGZ1bmN0aW9uIG1ha2VOZXdTdHVkKCRuYW1lLCAkc3VybmFtZSwgJHNleCwgJGdyb3VwTnVtYmVyLCAkZW1haWwsICRtYXJrLCAkbG9jYWwsICRiaXJ0aERhdGUpCiAgICB7CiAgICAgICAgJERCSCA9ICR0aGlzLT5tYWtlQ29ubmVjdCgpOwogICAgICAgICRkYXRhID0gYXJyYXkoJG5hbWUsICRzdXJuYW1lLCAkc2V4LCAkZ3JvdXBOdW1iZXIsICRlbWFpbCwgJG1hcmssICRsb2NhbCwgJGJpcnRoRGF0ZSk7CiAgICAgICAgJFNUSCA9ICREQkgtPnByZXBhcmUoIklOU0VSVCBJTlRPIFN0dWRlbnRzIChOYW1lLCBTdXJuYW1lLCBTZXgsIEdyb3VwTnVtYmVyLCBFbWFpbCwgTWFyaywgTG9jYWwsIEJpcnRoRGF0ZSkgVkFMVUVTICg/LCA/LCA/LCA/LCA/LCA/LCA/LCA/KTsiKTsKICAgICAgICAkU1RILT5leGVjdXRlKCRkYXRhKTsKCgogICAgfQ==