this is the same thing i am trying to do using the following
$daystoadd = $row_courseconn['course_expire'];
$thefinal = date("M-d-Y", mktime(0, 0, 0, date(n), date(j) + $daystoadd , date(Y)));
echo $thefinal;
results in 😮ct-28-2004
i am able to come up with the date that i want, however i am inserting into mysql and need the correct date fomat of :
0000-00-00 00:00:00
can anyone show me how to modify the above to get the correct string?
thanks