Server side

Server side

pippuccio76pippuccio76 Posts: 19Questions: 10Answers: 0

Hi , sorry for english , i tink my code is ok but i have the error:

DataTables warning: table id=datatable - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1

.My columns array are:

$columns = array(

array( 'db' => 'id_corse_autista_interno',     'dt' => 0 ),
array( 'db' => 'numero_corsa', 'dt' => 1 ),
array( 'db' => 'id_autista_interno',  'dt' => 2 ),
array( 'db' => 'id_azienda_richiedente',   'dt' => 3 ),
array( 'db' => 'id_cliente',     'dt' => 4 )
/*array(
    'db'        => 'start_date',
    'dt'        => 4,
    'formatter' => function( $d, $row ) {
        return date( 'jS M y', strtotime($d));
    }
),
array(
    'db'        => 'salary',
    'dt'        => 5,
    'formatter' => function( $d, $row ) {
        return '$'.number_format($d);
    }
)*/

);

If i try to charge server_processing.php

This is the result :

Skip to content Features Business Explore Marketplace Pricing Search Sign in or Sign up 389 5,451 1,666 DataTables/DataTables Code Pull requests 15 Projects 0 Wiki Insights Join GitHub today GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together. DataTables/examples/server_side/scripts/ssp.class.php 81218f4 12 days ago @DataTables DataTables Fix - examples: PHP demo script could use invalid SQL if an orderable… 532 lines (451 sloc) 14.1 KB {"draw":1,"recordsTotal":6213,"recordsFiltered":6213,"data":[["3","2","14","30","30"],["4","1","14","31","1"],["5","1","14","31","1"],["6","2","14","31","1"],["7","1","12","34","1"],["8","4","12","33","1"],["9","5","12","34","1"],["10","5","14","32","1"],["11","1","12","21","35"],["13","2","14","31","1"]]}

Wats wrong ?

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Can you run the debugger on your page and let me know the debug code please?

    Thanks,
    Allan

This discussion has been closed.