$insert = $db->prepare(
'UPDATE titles SET
title_name = :titleName,
title_size = :titleSize,
title_color = :titleColor
WHERE id = :id');
$insert->execute([
':titleName' => $mainTitle,
':titleSize' => $mainTitleSize,
':titleColor' => $mainTitleColor,
':id' => 1
]);
$insert->execute([
':titleName' => $highTitle,
':titleSize' => $highTitleSize,
':titleColor' => $highTitleColor,
':id' => 0
]);
include_once 'connectDB.php';
if (isset($_POST['entry'])) {
$login = $_POST['login'];
$sql = $pdo->prepare("SELECT login, password FROM dataname WHERE login=?");
$sql->execute([$login]);
$data = $sql->fetch();
if (password_verify($_POST['password'], $data['password'])) {
echo 'YES';
}
else {
echo 'NO';
}
}
GRANT SELECT ON `пример`.`пример2` TO 'пример3'@'localhost'
dev.mysql.com/doc/refman/5.7/en/grant.html RESTRICT: Rejects the delete or update operation for the parent table. Specifying RESTRICT (or NO ACTION) is the same as omitting the ON DELETE or ON UPDATE clause.