Once again thanks for your able assistance, I would not have got this far without you.
I have managed to get the dates to increment and figured out how the system is looping etc.
It just appears now that the date the code is supposed to increment is replaced by '1970-01-01', obviously a system start time.
I have been really trying to get this to work but my lack of php knowledge is rather telling.
this is what i have so far...
*** I put the variable above the begin loop section:
<?php $writeDate = $row_Recordsetcustomers['date']; ?>
<?php
// RepeatSelectionCounter_1 Begin Loop
*** I created a visible test field so that I can see the results before they enter the system. This sits with the hidden fields
<input name="textfield" type="text" id="textfield" value="<?php echo date ('Y-m-d H:i:s' , $writeDate); ?>" />
*** I put the final bit of code in the RepeatSelectionCounter_1 End section
<?php } // RepeatSelectionCounter_1 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_1 && $RepeatSelectionCounter_1_IterationsRemaining != 0){
if(!$row_Recordsetpayments && $RepeatSelectionCounter_1_Iterations == -1){$RepeatSelectionCounter_1_IterationsRemaining = 0;}
$row_Recordsetpayments = mysql_fetch_assoc($Recordsetpayments);
$writeDate = strtotime('+7 days', $writeDate);
}
$RepeatSelectionCounter_1++;
} // RepeatSelectionCounter_1 End Loop
All this works except for the fact that the $row_Recordsetcustomers['date'] is not picked up and incremented and the following code you provide previously
stopped the increment from working altogether...
$writeDate= strtotime ( '+ '.$row_Recordsetcustomers['frequency'].' day' , date('Y-m-d H:i:s' , $writeDate) );
could all this be something to do with the php version I have? Or do I need to use Global variables?
Sorry to pester, Ray, but I have to have this bit done by the end of this month (gulp).
Once again thanks in anticipation
john