-4
I’m trying to get the recorded votes of 00:00 so far and my code shows that there is no.
$query = mysqli_query($mysqli, "SELECT * FROM votos_1 WHERE DATE(date) = DATE(NOW())");
$rowcount=mysqli_num_rows($query);
if ($rowcount == 0)
{
echo "não tem";
} else {
echo "tem";
}
Note: I have already put the function date_default_timezone_set()
for America/Fortaleza
, as well as for others.
Example of the date format inside the column date: 1577380495.
Have you tried using the comparator BETWEEN?
– Augusto Vasques