![]() |
Pagination Problem Help me ... - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Pagination Problem Help me ... (/showthread.php?tid=25751) Pages:
1
2
|
Pagination Problem Help me ... - El Forum - 12-23-2009 [eluser]Sathishkumar[/eluser] Hi, Iam newbie in CI. Pagination problem to my site ... its my code Controller : Code: $this->load->model('excute'); View : Code: <?php Model Code: function get_course2() Please anybody Help Me.... Pagination Problem Help me ... - El Forum - 12-23-2009 [eluser]flaky[/eluser] what is exactly the problem? Pagination Problem Help me ... - El Forum - 12-23-2009 [eluser]SpooF[/eluser] I'm going to take a guess at this and say that the links aren't working. The reason most likely being is that your not setting a uri_segment. It seems this is the number one cause of problems with the pagination class. Pagination Problem Help me ... - El Forum - 12-23-2009 [eluser]Sathishkumar[/eluser] Pagination links created but shows all rows ... http://i46.tinypic.com/s33ibl.jpg Pagination Problem Help me ... - El Forum - 12-23-2009 [eluser]SpooF[/eluser] This probably has something to do with your model and not the pagination class. The pagination class doesn't control how many entries to display. It simple gives you a starting point for your query. Pagination Problem Help me ... - El Forum - 12-23-2009 [eluser]saidai jagan[/eluser] post u r model function Pagination Problem Help me ... - El Forum - 12-23-2009 [eluser]Sathishkumar[/eluser] [quote author="saidai jagan" date="1261593378"]post u r model function[/quote] model function : Code: function get_course2() Pagination Problem Help me ... - El Forum - 12-23-2009 [eluser]saidai jagan[/eluser] Code: $ddata['course'] = $this->excute->get_course2($config['per_page'],$this->uri->segment(3)); Pagination Problem Help me ... - El Forum - 12-23-2009 [eluser]Sathishkumar[/eluser] show's following error.... http://i49.tinypic.com/2akfyap.jpg Code: A PHP Error was encountered Code: A PHP Error was encountered Code: A PHP Error was encountered Code: A Database Error Occurred 55th line is : Code: function get_course2($perpage,$start='0') 59th line : Code: $query = $this->db->query("SELECT * FROM course WHERE course_no_of_seats > course_enroll_no LIMIT $start , $perpage"); Pagination Problem Help me ... - El Forum - 12-23-2009 [eluser]saidai jagan[/eluser] will u post u r LATEST controller function and Model function ? |