Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $conn=mysqli_connect('localhost',$username,$pass,$db);
- $query="SELECT * FROM account WHERE username='$nim' and password='$pwd'";
- $result = mysqli_query($conn,$query);
- $count = mysqli_num_rows($result);
- if ($count!=0){
- return true;
- } else {
- die ('No such account found!');
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement