Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. $example=$mysqli->query(" SELECT `name`,`password` FROM `bases` WHERE `name`= 'Admin' and `password`= '2017' ");
  2. $res=$example->fetch_row();
  3.  
  4.  
  5. //Тестовый кабинет
  6. if(isset($_POST["send"])){
  7.  
  8.  
  9. if($login==$res[0] and $password==$res[1]) {
  10.  
  11.  
  12. header('Location: BD.php');
  13. exit; }
  14.  
  15. else{
  16. echo '<center><a style="color:red; position:relative; top:310px;" name="logpass">Неверный логин или пароль!</a></center>';
  17. //print_r($res);
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement