I have multidimensional associative array like below, and printing this on the page in a html table, Now i want to do the functionality for the table like pagination, sorting on columns. I am looking for the library that can do the job.
I have googled this but could not find a sufficient idea to do the job. Read about array_multisort and other array functions.
Actually i want to run the query once and fill data into array. Other function like order by(sorting) and limit(pagination) done through the array without re-execute the query.
Array can have all data types.
[1] => Array
(
[trans_date_time] => 30-07-2008 11:35:16
[transaction_value] => 16.95
[affiliate_earns] => 0.51
[programme_name] => Buy Cosmetics
)
[2] => Array
(
[trans_date_time] => 26-07-2006 13:37:31
[transaction_value] => 5.99
[affiliate_earns] =>
[programme_name] => hmv
)
[3] => Array
(
[trans_date_time] => 16-08-2006 12:27:21
[transaction_value] => 6.40
[affiliate_earns] =>
[programme_name] => Good
)
[0] => Array
(
[trans_date_time] => 09-09-2008 09:31:07
[transaction_value] => 219.14
[affiliate_earns] => 45.00
[programme_name] => AIG Home insurance
)
[4] => Array
(
[trans_date_time] => 06-09-2006 10:05:22
[transaction_value] => 7.50
[affiliate_earns] =>
[programme_name] => Better
)
Any help would be greatly appreciated.
Thanks in advance.