Error http://datatables.net/tn/4

Error http://datatables.net/tn/4

juancarlos77juancarlos77 Posts: 7Questions: 3Answers: 0

Hello, I have a problem showing the table, this is the code where the data is sent, there are 15800 records

$tabla.='{
        "prd_id":"'. $row['prd_id'].'",  
        "prd_code":"'. $row['prd_code'].'",
        "prd_name":"'. $prd_detail.'",      
        "prd_ubic":"'. $row['prd_ubic'].'",
        "prd_group":"'. $grp_name .'",
        "prd_pv1":"'.$prd_prices.'",
        "prd_csto":"'. $co_money . $row['prd_pricecost']."<br/><small> X " . $row['prd_UnidadEmpaque']. "</small>" .'",
        "prd_stock":"'. $row['prd_Existencias'] ."<br/><small>" . $row['prd_UnidadEmpaque']. "(s)</small>".'",
        "prd_active":"'. $row['prd_Activo'].'",
        "prd_tax":"'. ($row['prd_PorcentajeIva'])."%".'",
        "prd_actions":"'. $prd_actions.'"
    },';
}

    //se elimina la coma que sobra
    $tabla = substr($tabla,0, strlen($tabla) - 1);

    $json_data=array(
        "data" =>  $tabla
    );
    
    echo json_encode($json_data);



May you tell me what's wrong with my code?

Answers

This discussion has been closed.