diff --git a/examples/examples_support/server_processing.php b/examples/examples_support/server_processing.php index 4c447bd0..ccae1009 100644 --- a/examples/examples_support/server_processing.php +++ b/examples/examples_support/server_processing.php @@ -143,45 +143,31 @@ /* * Output */ - $sOutput = '{'; - $sOutput .= '"sEcho": '.intval($_GET['sEcho']).', '; - $sOutput .= '"iTotalRecords": '.$iTotal.', '; - $sOutput .= '"iTotalDisplayRecords": '.$iFilteredTotal.', '; - $sOutput .= '"aaData": [ '; + $output = array( + "sEcho" => intval($_GET['sEcho']), + "iTotalRecords" => $iTotal, + "iTotalDisplayRecords" => $iFilteredTotal, + "aaData" => array() + ); + while ( $aRow = mysql_fetch_array( $rResult ) ) { - $sOutput .= "["; + $row = array(); for ( $i=0 ; $i \ No newline at end of file