I thought that it was working, but it still doesn't seem to be functioning. Basically this is what I am looking for the result to look like. I will have headings that are not dynamic text.
Nursery: [NAME(s) from Table where DEPARTMENT in equal to Nursery]
Wee Church: [NAME(s) from Table where DEPARTMENT in equal to Wee Church]
And so on...
When I have the code that is referenced in the last post, inside a repeat region it repeats the whole entire table for every record. When I leave out a repeat region it doesn't return any results at all.
Below is the code that I a have when it repeats everything for each record.
Thanks so much for your input.Code:<?php do { ?> <strong>Nursery</strong><br /> <?php if($row_Recordset1['department'] == 'Nursery') { echo $row_Recordset1['names']."</p>"; }?> <br /> <strong>Baby Ministers</strong><br /> <?php if($row_Recordset1['department'] == 'Baby Minister') { echo $row_Recordset1['names']."</p>"; } ?> <br /> <strong>Pre Wee Church</strong><br /> <?php if($row_Recordset1['department'] == 'Pre Wee Church') { echo $row_Recordset1['names']."</p>"; } ?> <br /> <strong>Wee Church</strong><br /> <?php if($row_Recordset1['department'] == 'Wee Church') { echo $row_Recordset1['names']."</p>"; } ?> <br /> <strong>Childrens Church</strong><br /> <?php if($row_Recordset1['department'] == 'Childrens Church') { echo $row_Recordset1['names']."</p>"; } ?> <br /> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>



Reply With Quote

Bookmarks