Welcome Guest, Not a member yet? Register   Sign In
Questions on working with db results
#1

[eluser]braca86[/eluser]
hello 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:
Code:
function index()
{
$data['query'] = $this->db->get('tablefield');
    $this->load->view('blog_view', $data);
}
view:
Code:
<?php foreach($query->result() as $row): ?>
<ol>
<li> &lt;?php $row->record ?&gt; </li>
</ol>
<hr>
&lt;?php endforeach; ?&gt;


Messages In This Thread
Questions on working with db results - by El Forum - 09-22-2010, 08:23 AM
Questions on working with db results - by El Forum - 09-22-2010, 08:27 AM
Questions on working with db results - by El Forum - 09-22-2010, 08:32 AM
Questions on working with db results - by El Forum - 09-22-2010, 08:34 AM
Questions on working with db results - by El Forum - 09-22-2010, 08:39 AM
Questions on working with db results - by El Forum - 09-22-2010, 12:47 PM
Questions on working with db results - by El Forum - 09-23-2010, 06:56 AM
Questions on working with db results - by El Forum - 09-23-2010, 07:13 AM
Questions on working with db results - by El Forum - 09-23-2010, 10:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB