Guest User

Untitled

a guest
May 2nd, 2018
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. <?php
  2.     include('koneksi.php');
  3.     session_start();
  4.     if(isset($_POST['login'])){
  5.         $query="select * from tbl_user WHERE username='".$_POST['username']."' and password='".$_POST['password']."'";
  6.         $a=mysqli_query($cn,$query);
  7.         if(mysqli_num_rows($a)>0){
  8.             $_SESSION['login']="aktif";
  9.             header('location:index.php');
  10.         }
  11.     }
  12. ?>
Add Comment
Please, Sign In to add comment