I have Db which has data of an year…so I need a query to select data from based on a date(particularly yesterday’s) and count how many are in this…..
Help please!
It has a column with name “created” where all the date & time are present.
code used:
//$thirty_reg = mysql_query("SELECT column FROM user WHERE user.date BETWEEN DATE_SUB(NOW(), INTERVAL 30 DAY) AND NOW()");
//$num_thirty=mysql_num_rows($thirty_reg);
//echo $num_thirty;
1 Answer