since the date is all screwed up in ddmmyy format, which neither sorts naturally nor is welcomed by any functions, you'll have to plug in a bit more code than that I'm afraid
For the sake of space I'm going to make a reference to your long-ass-variable (which is fine, don't get me wrong!)
Code: Select all
$fc=&$frequencycurrent;
$fc = date('dmy',strtotime('+2 weeks',mktime(0,0,0,substr($fc,2,2),substr($fc,0,2),substr($fc,4,2))));
substr() returns substrings of your date format for month, day and year (in that order, which mktime() wants)
mktime() makes a unix timestamp out of those variables
strtotime() adds 2 weeks to it
finally date() turns it back into your strange date format.
It's kludgy but it works.
Cheers,
Kieran