Forum Moderators: coopster
One repeat set repeats the data in tables, so that it is easily viewable. There are dozens of tables, though, and scrolling to find the one I want takes a bit.
So, I want a "menu" at the top that lists the primary keys of each of these rows. I've made these into hyperlinks that will jump to the table based on an anchor I have set there (which is also dynamic).
So, basically I need one repeat for the menu, and one repeat for the tables, but they each come from the same table....
<?php
$topList = ''; // initialize
$html = ''; // initialize
while (retrieving data) {
if (this is a new drop-down item for the top list) {
$topList .= "<option>{$row['myColumn']}</option>";
}
$html .= "<tr><td>{$row['thisTableData']}</td</tr>";
}
?>
<html><head><title>Title</title></head><body>
<?php
print $topList;
print $html;
?>
</body>
</html>