You're giving the error Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, boolean given in. Can someone help me?
$mes = date('m');
$ano = date('Y');
$sql = mysqli_query($conn, "SELECT * FROM table WHERE empresa='empresa' AND MONTH(data_atendimento) = '$mes' AND YEAR(data_atendimento) = '$ano'");
$numRegistros = mysqli_num_rows($sql);