php - MySQL Query - Records between 15 days ago End_date to till End_date -
i want return records database 15 days old end _date till end_date! 
 searching query last 3 days! 
 however. want query. simple i'm not sure how it.  
 wrote query :
select *  bid_post ending_date between date_sub( date(`ending_date`) , interval 15  day )  , ending_date >= curdate()   but not working ! 
 data column varchar type. storing date yyyy-mm-dd format
does how can accomplish this?
thanks.
please try query
select * bid_post ending_date between date_sub( curdate() , interval 15 day ) , curdate()      
Comments
Post a Comment