![]() |
Selecting category details and products linked with the same category. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Selecting category details and products linked with the same category. (/showthread.php?tid=38295) Pages:
1
2
|
Selecting category details and products linked with the same category. - El Forum - 02-05-2011 [eluser]cideveloper[/eluser] Controller Code: function index() { Models - Change it to return Array Code: function select_fleets() { View Code: <div> Selecting category details and products linked with the same category. - El Forum - 02-05-2011 [eluser]Bigil Michael[/eluser] now i got the result like this Group D lancer1212 Group C mercedes benz 112 Group C mercedes benz 112 Group A YARIS Lancer Group A YARIS Lancer category names(group) are repeating Selecting category details and products linked with the same category. - El Forum - 02-05-2011 [eluser]cideveloper[/eluser] Ok then try this Code: function select_fleets() { Selecting category details and products linked with the same category. - El Forum - 02-05-2011 [eluser]Bigil Michael[/eluser] thanku so much now it is working but it generates another problem this is my original controller Code: function index($pgoffset='') $this->data['row_offer'] = $this->Home_model->select_offer(); $this->data['result_news'] = $this->Home_model->select_news(); these 2 steps are not working that means there show an error Message: Undefined variable: row_offer Selecting category details and products linked with the same category. - El Forum - 02-05-2011 [eluser]cideveloper[/eluser] change Code: $this->data = array ( to Code: $this->data['meow'] = $build_array; Read this Selecting category details and products linked with the same category. - El Forum - 02-07-2011 [eluser]Bigil Michael[/eluser] i solved my problem thank you so much Selecting category details and products linked with the same category. - El Forum - 02-07-2011 [eluser]Bigil Michael[/eluser] order by and limit is not working Code: function select_fleets($limit, $pgoffset) can u tell me how to apply limit and orderby category name ascending?? thanks in advance Selecting category details and products linked with the same category. - El Forum - 04-08-2011 [eluser]Bigil Michael[/eluser] Quote:function select_fleets($limit, $pgoffset) here limit and order_by is not working can anyone help me?????????? thanks in advance |