Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'bd.php';
- $result = mysql_query("SELECT * FROM adminpassword");
- $array = mysql_fetch_array($result);
- if(!empty($_POST['password'])){
- if($_POST['password']==$array[adminpass]){
- session_start();
- $_SESSION['access']=true;
- header("Location: adminpanel") ;
- }
- else {
- header("Location: error") ;
- }
- }
- else
- {
- ?>
Add Comment
Please, Sign In to add comment