Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nr = $this->query("SELECT * FROM users WHERE username = '$username' AND password = '$passoword'");
- if($nr->num-rows != 0) {
- echo '<div class="errormsg">Username or Password is incorrect</div>';
- }else{
- while($row = $nr->fetch_assoc()) {
- $_SESSION['lia'] = $row['username'];
Add Comment
Please, Sign In to add comment