You're giving an error
Fatal error: Call to undefined function mysqli_num_roms ()
I've tried to solve it, but I could not.
<?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";
}
?>