How to add multiple tables using multiple CSV files
How to add multiple tables using multiple CSV files
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?
This discussion has been closed.
Replies
[code]
$(document).ready(function(){
$.get("csvtohtml.php?f=test5.csv",
function(data){
$("table").append(data).dataTable( {
"sDom": 'T<"clear">lfrtip'
} );
})
});
[/code]