Posts by Juliano Santos • 11 points
2 posts
-
0
votes2
answers1461
viewsA: Check last records per hour
There is that way too: $data_hora_intervalo = date('Y-m-d H:i:s', strtotime('-1 hour', strtotime(date('Y-m-d H:i:s')))); where data>='$data_hora_intervalo'
-
1
votes2
answers1461
viewsA: Check last records per hour
For me what Sergio said it worked: WHERE data >= DATE_SUB(NOW(), INTERVAL 1 HOUR) Maybe it’s because in the field structure in your table you have put only DATE, place DATETIME you’re here…