Guest User

Untitled

a guest
Apr 21st, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. $nr = $this->query("SELECT * FROM users WHERE username = '$username' AND password = '$passoword'");
  2.  
  3. if($nr->num-rows != 0) {
  4. echo '<div class="errormsg">Username or Password is incorrect</div>';
  5. }else{
  6. while($row = $nr->fetch_assoc()) {
  7. $_SESSION['lia'] = $row['username'];
Add Comment
Please, Sign In to add comment