display result descending list multiple tables |
[eluser]masentinel900[/eluser]
http://i.imgur.com/7buHFuY.jpg http://pastebin.com/s0zaPF8H Code: [Controller] Hello guys!! This is basically what I have. the [target] tag is what I want to do in my output, I just want to do a descending list but without repeat the records of the first table. This case "Alimentos"
[eluser]rana[/eluser]
as per your requirement, your view code is wrong. See the this code: Code: <ul> This is not going to give you more than one item ever.... To get what you need, first, use order_by method on model as follows: Code: $this->db->order_by("","asc") Then on view, add little check as below: Code: <?php foreach($query as $row):?> |
Welcome Guest, Not a member yet? Register Sign In |