How can I display and count the values whose dates are yesterday? I used time() to insert date in the database. Example:
time()
URL: google.com youtube
Query for the last weeks:
SELECT * FROM dual WHERE search_date BETWEEN SUBDATE(CURDATE(), 7) AND CURDATE()
SELECT SUBDATE(NOW(),1);
where now() function returs current date and time of system in Timestamp...
you can use:
SELECT SUBDATE(CURDATE(),1)