$home = $_POST['home'];
$name = file($_FILES['name']['tmp_name'], FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
$lastname = file($_FILES['lastname']['tmp_name'], FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
$query = "INSERT INTO `table` (`name`, `lastname`, `home`) VALUES (?, ?, ?)";
$stmt = $connection->prepare($query);
$stmt->bind_param("sss", $name, $lastname, $home);
$connection->begin_transaction();
foreach($name as $value) {
$stmt->execute();
}
$stmt->bind_param("ss", $word, $vocabulary);
Был горький опыт с процессорами от AMD, так что личная неприязнь