How to insert a non-database field in datatables server side processing

How to insert a non-database field in datatables server side processing

dark_knightdark_knight Posts: 1Questions: 0Answers: 0
edited July 2012 in General
Hi guys, i'm a new datatables user. I have a problem with server side processing in datatables when i want to show a counter number into my datatables. this is my code, but it's not working for me. Could you help me guys? Thank a lot :)

[code]
$aColumns = array( ' ','UpdatedInDB', 'DestinationNumber', 'TextDecoded', 'Status' );
$j=1;
while ( $aRow = mysql_fetch_array( $rResult ) )
{
$row = array();
for ( $i=0 ; $i<=count($aColumns) ; $i++ )
{
if ( $aColumns[$i] != ' ' )
{
/* General output */
$row[] = $aRow[ $aColumns[$i] ];
}
else
{
$row[] = "$j.";
}
}
$output['aaData'][] = $row;
$j++;
}
[/code]
This discussion has been closed.