Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once '../includes/configuration.php';
- $userName = $_POST["user-name"];
- $userPass = $_POST["user-pass"];
- $SQL = mysqli_query($con, "SELECT Usuario, Senha FROM administradores WHERE Usuario='$userName' AND Senha='$userPass' ");
- if (mysqli_num_roms($SQL) != 0){
- echo "logado";
- }else{
- echo "Login incorreto";
- }
- ?>
- if (mysqli_num_rows($SQL) != 0) {
- echo "logado";
- } else {
- echo "Login incorreto";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement