Need help on calculating date using 2 variables. I have 3 fields in my Mysql :
1) dateposted
2) duration
3) expire date
How can I calculate the expire date using original date (dateposted) and durations (eg 3 months)?
i'm using the following:
$exp_date = date("Y-m-d", mktime(0,0,0, date(m)+$delday, date(d),date(Y)));
It is only able to give me the expire date based on the current date.