Welcome Guest, Not a member yet? Register   Sign In
Active Record Help?
#2

[eluser]ChangedNames[/eluser]
It may also be useful to mention that currently I'm just pulling the data in the dashboard controller like so:
Code:
$this->db->where('id',$this->uri->segment(3));
$data['query'] = $this->db->get('episodes');
And then displaying it in my view like so:
Code:
<?php if($query->num_rows() > 0): ?>
    <?php foreach($query->result() as $row): ?>
    
<ul>
    &lt;?php foreach ($row as $key => $value): ?&gt;
        <li><strong>&lt;?=$key?&gt;</strong>: &lt;?=$value?&gt;</li>
    &lt;?php endforeach ?&gt;
</ul>
&lt;?php endforeach ?&gt;
&lt;?php endif; ?&gt;

I'm assuming this will need to change in order to achieve my goal.


Messages In This Thread
Active Record Help? - by El Forum - 08-27-2008, 02:08 PM
Active Record Help? - by El Forum - 08-27-2008, 02:12 PM
Active Record Help? - by El Forum - 08-27-2008, 02:20 PM
Active Record Help? - by El Forum - 08-27-2008, 02:39 PM
Active Record Help? - by El Forum - 08-27-2008, 03:04 PM
Active Record Help? - by El Forum - 08-27-2008, 11:08 PM
Active Record Help? - by El Forum - 08-28-2008, 09:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB