[eluser]braca86[/eluser]
i thing this is the right forum to write... im new to the codeignite so i hope someone can help me…
i made a query that is pulling some informactions from database and everything is working fine but i cant see the records from database… how? well i make ordered list and i can se for instance 4record but they are not displaying… like this
1.
2.
3.
4.
instead of this
1. first record
2. second
3. third
4. fourth
code:
conroler:
function index()
{
$data[‘query’] = $this->db->get(‘tablefield’);
$this->load->view(‘blog_view’, $data);
}
view:
<?php foreach($query->result() as $row): ?>
<ol>
<li> <?php $row->record ?> </li>
</ol>
<hr>
<?php endforeach; ?>