Error Call to Undefined Function mysqli_num_roms

Asked

Viewed 51 times

-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";

  }

?>
  • 1

    would not be mysqli_num_rows? looks like a typo

1 answer

1


  • 1

    Thanks for the help

Browser other questions tagged

You are not signed in. Login or sign up in order to post.