Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'koneksi.php';
- $username = $_POST['username'];
- $password = $_POST['password'];
- $sql = mysqli_query($link, "select * from users where username='$username' and password='$password'");
- $chek = mysqli_num_rows($sql);
- if(chek>0)
- {
- header("location:list.php");
- }else{
- header("location:login.php");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement