<?php
$db = new PDO('mysql:host=localhost;dbname=site', 'root', '');
if(isset($_POST['submit1'])) {
$result= $db->prepare('SELECT mail, password FROM accreg WHERE mail=:mail LIMIT 1');
$result -> bindParam(':mail', $_POST['mail'], PDO::PARAM_STR);
$result -> execute();
$data = $result->fetch();
if(password_verify($password, $hash)) {
echo 'Все работает';
}
else {
echo 'Неверный логин или пороль';
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>block scroll</title>
<meta charset="utf-8">
</head>
<body>
<style>
div{
width: 600px;
height: 400px;
border: 1px solid #C0C0C0;
background: #F1F1F1;
}
.d:hover {
width: 600px;
height: 400px;
border: 1px solid #C0C0C0;
background: #F1F1F1;
overflow:scroll;
}
</style>
<div class="d">texttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext</div>
</body>
</html>