Guest User

Untitled

a guest
Nov 22nd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2.  
  3. include 'bd.php';
  4.  
  5. $result = mysql_query("SELECT * FROM adminpassword");
  6. $array = mysql_fetch_array($result);
  7.  
  8. if(!empty($_POST['password'])){
  9.  
  10. if($_POST['password']==$array[adminpass]){
  11. session_start();
  12. $_SESSION['access']=true;
  13. header("Location: adminpanel") ;
  14. }
  15. else {
  16. header("Location: error") ;
  17. }
  18. }
  19. else
  20. {
  21. ?>
Add Comment
Please, Sign In to add comment