'instruction', 'dt' => 0), array('db' => 'input', 'dt' => 1), array('db' => 'output', 'dt' => 2), array('db' => 'created_ad', 'dt' => 3), array('db' => 'id', 'dt' => 4) /** if use date format */ // array( // 'db' => 'date', // 'dt' => 3, // 'formatter' => function( $d, $row ) { // return '$'.number_format($d); // } // ) ); // SQL server connection information $sql_details = array( 'user' => 'root', 'pass' => 'XmRTSMQ9', 'db' => 'php_crud', 'host' => 'localhost' ); /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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('ssp.class.php'); echo json_encode( SSP::simple($_GET, $sql_details, $table, $primaryKey, $columns) ); ?>