I need to do a log count. I used:
mysql_num_rows($consulta);
How do I do the same thing using mysqli? Because I'm doing it this way:
$tabela_usuarios = "SELECT * FROM owner WHERE owner_email='$email' AND password='$password' ";
$resul = mysqli_query($con, $tabela_usuarios);
$regs = mysqli_num_rows($resul);
And the following message appears on the screen: "Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, null given in /home/petsm976/public_html/php/logon.php on line 15"