-1
You’re making a mistake
Fatal error: Call to Undefined Function mysqli_num_roms()
I tried to fix it, but I couldn’t.
<?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";
}
?>
would not be
mysqli_num_rows
? looks like a typo– Gabriel Rodrigues