How to print multidimesion array in datatables

How to print multidimesion array in datatables

shraddha23shraddha23 Posts: 2Questions: 1Answers: 0

string(55) "[["First Name","comapny_name","address","designation"]]"
string(79) "[["Dulce","Cras Vehicula Aliquet Ltd","778-7231 At, Road","software devloper"]]"
string(81) "[["Mara","Malesuada Fames Consulting","7098 Posuere Street","software devloper"]]"

my code for datatables

<script type="text/javascript">

$(document).ready(function() {

$('#display').DataTable( {

    "ajax": 'newexcel.php'
} );

} );

</script>

Answers

  • shraddha23shraddha23 Posts: 2Questions: 1Answers: 0

    Plsss help me

  • colincolin Posts: 8,661Questions: 0Answers: 1,449

    These example show how to use arrays with Ajax data: here and here.

    If that doesn't help, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

Sign In or Register to comment.