insert a non-database field on server side datatable
insert a non-database field on server side datatable
diantama
Posts: 1Questions: 1Answers: 0
here i have some code
/* Array of database columns which should be read and sent back to DataTables. Use a space where
* you want to insert a non-database field (for example a counter or static image)
*/
$aColumns = array( 'engine', 'browser', 'platform', 'version', 'grade' );
/* Indexed column (used for fast and accurate table cardinality) */
$sIndexColumn = "nomorid";
now how to insert non database field in array? what is the mean of "use space" ?
sorry for basic question and thanks in advance
This discussion has been closed.
Answers
$aColumns = array( 'engine', 'browser', 'platform', 'version', 'grade', ' ' );
The sixth element would allow your non-database field.