Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- include_once "koneksi.php";
- $username = $_POST['username'];
- $password = $_POST['password'];
- $sql="SELECT count(username) total from inoobs WHERE username = '$username' AND password = '$password'";
- //$CekUsers = mysql_query("SELECT * from inoobs WHERE username = '$username' AND password = '$password'");
- $qry= mysql_query($sql)or die(mysql_error());
- //$jumlah = mysql_num_rows($CekUsers);
- $hasil = mysql_fetch_array($CekUsers);
- $jumlah=$hasil['total'];
- if($jumlah == 0){
- echo "Username tidak terdaftar di iNoobs";
- }else{
- $_SESSION['username'] = $hasil['username'];
- header("location:../iNoobsTools/index.php");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement