How can i select date older than today in mysql database -
i have following code outputs past 30 days entries phpmyadmin sql database. work , shows past 30 days entries, displays today's date entries, don't want. there way, past 30 days entries, excluding today's date? hers's code
("select * products date between date_sub(now(), interval 30 day) , now()")
try following query:-
select * products date between date_sub(now(), interval 30 day) , date_sub(now(), interval 1 day)
Comments
Post a Comment