I am working on PHP
and MySQL
, I want to count result that are generated today and yesterday.
Here is screenshot of my phpmyadmin
and table is results
. In date_generate
column I have used TIMESTAMP
I have this query which count total results
<?php
$query = $db->query("SELECT * FROM `results`");
$count = $query->rowCount();
echo $count;