'id', 'dt' => 0 ), array( 'db' => 'firstname', 'dt' => 1 ), array( 'db' => 'surname', 'dt' => 2 ), array( 'db' => 'zip', 'dt' => 3 ), array( 'db' => 'country', 'dt' => 4 ) ); // SQL server connection information $sql_details = array( 'user' => '', 'pass' => '', 'db' => '', 'host' => '' ); /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * If you just want to use the basic configuration for DataTables with PHP * server-side, there is no need to edit below this line. */ require( '../../../../examples/server_side/scripts/ssp.class.php' ); echo json_encode( SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) );