I'm using this Datatables example, on my server with a PHP version 5.2.
I know anonymous functions cannot be used, like the 'Server-side script' in the example on line 35, but I need some kind of solution for that, since I can't upgrade my server.
This is the problem:
array(
'db' => 'id',
'dt' => 'DT_RowId',
'formatter' => function( $d, $row ) {
// Technically a DOM id cannot start with an integer, so we prefix
// a string. This can also be useful if you have multiple tables
// to ensure that the id is unique with a different prefix
return 'row_'.$d;
}),
Does any one have a solution for that function($d, $row)
?