Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $example=$mysqli->query(" SELECT `name`,`password` FROM `bases` WHERE `name`= 'Admin' and `password`= '2017' ");
- $res=$example->fetch_row();
- //Тестовый кабинет
- if(isset($_POST["send"])){
- if($login==$res[0] and $password==$res[1]) {
- header('Location: BD.php');
- exit; }
- else{
- echo '<center><a style="color:red; position:relative; top:310px;" name="logpass">Неверный логин или пароль!</a></center>';
- //print_r($res);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement