How to add multiple tables using multiple CSV files

How to add multiple tables using multiple CSV files

sp7kisp7ki Posts: 2Questions: 0Answers: 0
edited May 2010 in General
I have SQL output going to separate CSV files that I need to put into multiple tables in HTML. I have already created a PHP script to have the CSV files read and output into a format dataTables can read. The problem I am running into is displaying each of these different php files on the same HTML page. The jQuery call in my html seems to only display one of the tables. Does anyone have an idea of how I can do this?

Replies

  • sp7kisp7ki Posts: 2Questions: 0Answers: 0
    Here is the HTML code I am using to call the data tables. When I repeat this script with a different csv file input into php, I can't seem to output it.
    [code]

    $(document).ready(function(){
    $.get("csvtohtml.php?f=test5.csv",
    function(data){
    $("table").append(data).dataTable( {
    "sDom": 'T<"clear">lfrtip'
    } );
    })
    });

    [/code]
This discussion has been closed.