Hi, I'm trying to update a database field (duedate)based on the value of a
variable (periodic). The below code echos the right results but not sure
how to use the value in "periodic" this and the "$date" in "duedate. Any
hints?
Code:
// advance duedate =+ peridotic(number of months)
= new DateTime("+6 months");
->modify("-" . (->format('F')+0) . " days");
echo ->format('Y-m-d');
echo "<br />";
// advance duedate one month
= new DateTime("+1 months");
->modify("-" . (->format('F')+0) . " days");
echo ->format('Y-m-d');