Sorry, Jason;
The folowing is the complete repeat region:
<?php if ($totalRows_rsDates > 0) { // Show if recordset not empty ?>
<div class="col-sm-5">
<div class="panel-group" id="accordion">
<?php do { ?>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $row_rsDates['ref']; ?>">
<?php echo $row_rsDates['mnu_date']; ?>
</a>
<p class = "pull-right">confirm | update | delete</p></h4>
</div>
<div id="collapse<?php echo $row_rsDates['ref']; ?>" class="panel-collapse collapse <?php /*START*/ if ($rsDates['RNo']="0"){ ?>
in<?php /*END*/ } ?>">
<div class="panel-body">
<?php do { ?>
<?php /*START*/ if ($rsFutMenus['ref']==$rsDates['ref']){ ?>
<img src="../img/products/thumbs150/<?php echo $row_rsFutMenus['ProductImage']; ?>" /><?php echo $row_rsFutMenus['ProductName']; ?> £<?php echo $row_rsFutMenus['ProductPrice']; ?> | <?php /*END*/ } ?>
<?php } while ($row_rsFutMenus = mysql_fetch_assoc($rsFutMenus)); ?>
<?php
// reset the recordset after a repeat region
mysql_data_seek($rsFutMenus, 0);
// get the first row from the recordset
$row_rsFutMenus = mysql_fetch_assoc($rsFutMenus);
?>
</div>
</div>
</div>
<?php } while ($row_rsDates = mysql_fetch_assoc($rsDates)); ?>
</div>
</div>
<?php } // Show if recordset not empty ?>
The 'inner' part of the accordion is
<?php do { ?>
<?php /*START*/ if ($rsFutMenus['ref']==$rsDates['ref']){ ?>
<img src="../img/products/thumbs150/<?php echo $row_rsFutMenus['ProductImage']; ?>" /><?php echo $row_rsFutMenus['ProductName']; ?> £<?php echo $row_rsFutMenus['ProductPrice']; ?> | <?php /*END*/ } ?>
<?php } while ($row_rsFutMenus = mysql_fetch_assoc($rsFutMenus)); ?>
<?php
// reset the recordset after a repeat region
mysql_data_seek($rsFutMenus, 0);
// get the first row from the recordset
$row_rsFutMenus = mysql_fetch_assoc($rsFutMenus);
?>
</div>
</div>
</div>
<?php } while ($row_rsDates = mysql_fetch_assoc($rsDates)); ?>
I've tried to relate the 'inner' to the tab heading by using <?php /*START*/ if ($rsFutMenus['ref']==$rsDates['ref']){ ?> but this just shows all records, for some reason.
Cheers
Chris