Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('koneksi.php');
- session_start();
- if(isset($_POST['login'])){
- $query="select * from tbl_user WHERE username='".$_POST['username']."' and password='".$_POST['password']."'";
- $a=mysqli_query($cn,$query);
- if(mysqli_num_rows($a)>0){
- $_SESSION['login']="aktif";
- header('location:index.php');
- }
- }
- ?>
Add Comment
Please, Sign In to add comment