I am using following class to show a grid like appearance with pagination on my home page. The class is very good and is working fine.
When the grid shows records, I just want to make the second column values as a hyperlink. I tried adding a href … in the class where $c is updating, but it is not working. Can anyone help me out.
This class also uses “style.css” file that is also available from the link below. Are any changes needed there?
http://www.webmastergate.com/php/paginate-query-results.html
In the function getRows(), near the very last lines of the function where the $c variable is set. You have to somehow test whether this is the column you want to add the link. Suggest that you set up another associative array which store a key and a callback function
Another datagrid I will recommend is http://www.eyesis.ca/projects/datagrid.html – it partly removes the need to add in link as you can add custom actions to each row.