please help - codeigniter search and pagination - 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: please help - codeigniter search and pagination (/showthread.php?tid=58496) |
please help - codeigniter search and pagination - El Forum - 06-16-2013 [eluser]Unknown[/eluser] hi, please help me with this problem i have one one table connected with database, i want to add feature pagination and select in that database but already try and error my code is like this : app/ VIEWS Code: <div id="data"> app/controllers Code: function __construct(){ and got error like this before i try to add pagination and search the page like this can someone help me with this please help - codeigniter search and pagination - El Forum - 06-17-2013 [eluser]boony[/eluser] Hi, Having a look at the error in the first link it looks like you are not getting anything from the database. Check the $data array to make sure you are getting the correct data. Do a var_dump($data) just above the foreach loop to check. Of course there may be something else going on but this would be my first check. Boony please help - codeigniter search and pagination - El Forum - 06-18-2013 [eluser]Pert[/eluser] Change foreach($data as $baris) to foreach($data<b>['data']</b> as $baris) |