'data_criacao', 'dt' => 0 ), array( 'db' => 'status_equipamento', 'dt' => 1 ), array( 'db' => 'localidade', 'dt' => 2 ), array( 'db' => 'ativo', 'dt' => 3 ), array( 'db' => 'numero_serie', 'dt' => 4 ), array( 'db' => 'nome_colaborador', 'dt' => 5 ), array( 'db' => 'departamento', 'dt' => 6 ), array( 'db' => 'id', 'dt' => 7 )); // SQL server connection information $sql_details = array( 'user' => 'root', 'pass' => '', 'db' => 'rdtech', '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( $_POST, $sql_details, $table, $primaryKey, $columns ) );