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()