CodeIgniter Forums
sorting table, selecting amount of rows per page etc - 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: sorting table, selecting amount of rows per page etc (/showthread.php?tid=44727)



sorting table, selecting amount of rows per page etc - El Forum - 08-24-2011

[eluser]Unknown[/eluser]
Hey there, CI folks! Just started working with codeigniter and came across this problem.
So, basicly here's what I have to do (see attachment):

I have to fill the table with values from MySQL database. And it's kinda simple, I easily accomplished it with 'table' class like this:

Code:
$this->table->generate($records);

I also added pagination.

And here's what a I have no idea how to implement:
1) allowing user to select amount of rows per page
2) sorting table values by clicking the titles in header row
3) adding 'Edit' and 'Delete' options and assigning them to the corresponding record in database

I would appriciate any possible help, like general tips or tutorial links.
Much thanks.