zrobiłem logowanie w php i jest mały problem, otóż za każdym raze jest niepoprawne logowanie, nie ważne czy dobry login i hasło czy zły
index.php
<!DOCTYPE html> <html lang="pl"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="index.css"> <link rel="stylesheet" href="register.css"> </head> <body> <form class="form-contener" action="signin.php" mathod="POST"> <input type="text" class="inputText" name="username" placeholder="Your username"> <input type="password" class="inputText" name="pass" placeholder="Your password"> </form> </body> </html>
signin.php
<?php include 'db_connect.php'; $sql = "SELECT * FROM users WHERE username = '$username' AND pass = '$pass'"; $result = mysqli_query($conn, $sql); if(!$row = mysqli_fetch_assoc($result)) { } else { }
o co moze chodzic? :_: