Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($numrows != 0) {
- while ($row = mysqli_fetch_assoc($query)) {
- $dbusername = $row["username"];
- $dbpassword = $row["password"];
- }
- if ($username == $dbusername && $password == $dbpassword) {
- session_start();
- $_SESSION["sess_username"] = $dbusername;
- header("Location: dashboard.php");
- }
- } else {
- echo "<script src='assets/notyf/notyf.min.js'>
- var notyf = new Notyf();
- notyf.confirm('Success');
- </script>";
- }
- ?>
Add Comment
Please, Sign In to add comment