What I wanna do is update a field in a row based on the date.
UPDATE tabe SET field=field-field*variable WHERE date
What i cant figure out how to do is count days if date >=7 AND date <=13 Variable =.10 also keep going with it IF date >=14 AND date <=20 Variable =.20
What i cant figure out is how to count how many days away date is from the curdate
so if Date=2012-04-20 I wanna know how to count how many days that is from curdate
Now im pretty sure I can figure out how to do this if someone can help me in counting days date is from today.