Repeat region on relational table
I have a repeat region & within that another repeat region & relational table into this.
So it works this way:
<?php
// RepeatSelectionCounter_1 Begin Loop
$RepeatSelectionCounter_1_IterationsRemaining = $RepeatSelectionCounter_1_Iterations;
while($RepeatSelectionCounter_1_IterationsRemaining--){
if($RepeatSelectionCounterBasedLooping_1 || $row_DT){
?>
<?php
mysql_select_db($database_con1, $con1);
$query_DocumentDetails = "SELECT * FROM Documents WHERE DocumentID IN (".$row_DT['DTDocumentID'].")";
$DocumentDetails = mysql_query($query_DocumentDetails, $con1) or die(mysql_error());
$row_DocumentDetails = mysql_fetch_assoc($DocumentDetails);
$totalRows_DocumentDetails = mysql_num_rows($DocumentDetails);?>
<input type="hidden" name="WADA_RepeatID_DTID_<?php echo $RepeatSelectionCounter_1; ?>" id="WADA_RepeatID_DTID_<?php echo $RepeatSelectionCounter_1; ?>" value='<?php echo $row_DT["DTID"]; ?>' />
<input <?php if (!(strcmp($row_DT['DTID'],WA_AB_returnPreSelectValue($WA_PreSelect_RelationalTable_1, $row_DT['DTID'])))) {echo "checked=\"checked\"";} ?> name="DocChecked_<?php echo $RepeatSelectionCounter_1; ?>" type="checkbox" value="<?php echo $row_DT['DTID']?>" />
<?php echo $row_DocumentDetails['DocumentName']?> </br>
<?php
} // RepeatSelectionCounter_1 Begin Alternate Content
else{
?>
<?php } // RepeatSelectionCounter_1 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_1 && $RepeatSelectionCounter_1_IterationsRemaining != 0){
if(!$row_DT && $RepeatSelectionCounter_1_Iterations == -1){$RepeatSelectionCounter_1_IterationsRemaining = 0;}
$row_DT = mysql_fetch_assoc($DT);
}
$RepeatSelectionCounter_1++;
} // RepeatSelectionCounter_1 End Loop
?></td>
</tr>
<?php
} // RepeatSelectionCounter_2 Begin Alternate Content
else{
?>
<?php } // RepeatSelectionCounter_2 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_2 && $RepeatSelectionCounter_2_IterationsRemaining != 0){
if(!$row_DocumentTypes && $RepeatSelectionCounter_2_Iterations == -1){$RepeatSelectionCounter_2_IterationsRemaining = 0;}
$row_DocumentTypes = mysql_fetch_assoc($DocumentTypes);
}
$RepeatSelectionCounter_2++;
} // RepeatSelectionCounter_2 End Loop
?>
Shared link privately to view it.