diff --git a/examples/server_side/scripts/id_jsonp.php b/examples/server_side/scripts/id_jsonp.php new file mode 100644 index 00000000..4d4d2fd3 --- /dev/null +++ b/examples/server_side/scripts/id_jsonp.php @@ -0,0 +1,179 @@ + intval($_GET['sEcho']), + "iTotalRecords" => $iTotal, + "iTotalDisplayRecords" => $iFilteredTotal, + "aaData" => array() + ); + + while ( $aRow = mysql_fetch_array( $rResult ) ) + { + $row = array(); + + // Add the row ID and class to the object + $row['DT_RowId'] = 'row_'.$aRow['id']; + $row['DT_RowClass'] = 'grade'.$aRow['grade']; + + for ( $i=0 ; $i \ No newline at end of file diff --git a/examples/server_side/scripts/objects_jsonp.php b/examples/server_side/scripts/objects_jsonp.php new file mode 100644 index 00000000..7b403bad --- /dev/null +++ b/examples/server_side/scripts/objects_jsonp.php @@ -0,0 +1,176 @@ + intval($_GET['sEcho']), + "iTotalRecords" => $iTotal, + "iTotalDisplayRecords" => $iFilteredTotal, + "aaData" => array() + ); + + while ( $aRow = mysql_fetch_array( $rResult ) ) + { + $row = array(); + for ( $i=0 ; $i \ No newline at end of file