Whenever I add a new row of data to my database, I give it an expiration date (e.g., 2008-10-01). How do I select all rows due to expire in the next 3 days (today, tomorrow or the day after)?
SELECT * FROM tablename WHERE expdate >= CURDATE() AND expdate <= ADDDATE(CURDATE(), 2) Code (markup):