[eluser]mingquel[/eluser]
So I don't know if the title really describes the problem, but I had to put something. So the problem we're having is, we have to two databases that we've inner joined but need to print out a certain amount to the view. As it stands now, when the view is loaded, the user sees just the category links. When you view the source, you see the category links as well as an id that corresponds to the category links, but you also see the one hundred and three Terms and Definitions. The issue is, for every category id, it's printing out all one hundred and three Terms/Definitions. How would we go about getting it to print out only the Terms/Definitions that relate to a specific category id? Here is the code for the view:
Code:
<div id="main-content-wrap" class="content">
<h1>Glossary of Real Estate Terms</h1>
<div id="glossary">
<div class="nav-glossary">
<ul id="internalnav">
<?php foreach ($blubs as $blub): ?>
<li><a href="#"><?php echo $blub->gl_categories ?></a> · </li>
<?php endforeach; ?>
</ul>
</div>
<?php foreach ($blubs as $blub): ?>
<div class="section" id="<?php echo $blub->gl_categories ?>">
<dl>
<?php foreach ($blobs as $blob): ?>
<dt><?php echo $blob->Term ?></dt>
<dd><?php echo $blob->Definition ?></dd>
<?php endforeach; ?>
</dl>
</div> <!-- end section --><?php endforeach; ?>
</div>
</div>
<div id="menu-generic">
<?php $this->load->view('sidebar-generic'); ?>
</div>
Any help would be appreciated. Feel free to ask for more information. Thanks.