Problem in display (view) |
[eluser]johnmiller[/eluser]
Hey... I have a table called 'users' with fields 'name, address'. There are 100 records in this table. I need to display all the 100 records in the 'view'. But I am getting only one record(first record). How to write the view which displays all the 100 records? Can you please help me? The below given are the model and controller Model (blogmodel.php) Code: <?php Controller (blog.php) Code: <?php
[eluser]jcopling[/eluser]
I believe that you are wanting the function result_array() rather than row_array(). The row() and row_array() functions simply return the first result.
[eluser]cyr0715[/eluser]
http://ellislab.com/codeigniter/user-gui...sults.html |
Welcome Guest, Not a member yet? Register Sign In |