How do I do the less than AND greater than $date
in wpdb?
$date = ('Y-m-d');
$wpdb->get_results($wpdb->prepare('SELECT * FROM product_history WHERE enddate = "%d";', array($date)));
I wan't to get history where enddate is today or in present time, BUT also more than 0000-00-00
.