tags:

views:

30

answers:

2

i have to select from my homework dates from this time up to the next 2 months... i'm doing an expiration database.. pls help me

A: 

Read and learn !

MatTheCat
A: 
select * from homework where homework_date between now() and now() + interval 2 month;
Paul Tomblin
Error Code: 1064You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DATE' at line 1
jzce
@jzce - you have to change the column names to match your database.
Paul Tomblin
Also, I left out an underscore the first time I posted it, but I fixed that 20 minutes before you posted your comment.
Paul Tomblin