Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

294
Views
Excel data to the MySql database

I have already find this code and tried - it creates a DOM object from the copypasted textarea from Excel. The script:

<script>
function generateTable() {
    var data = $('textarea[name=excel_data]').val();
    console.log(data);
    var rows = data.split("\n");
    var table = $('<table class="table"/>');
    for(var y in rows) {
    var cells = rows[y].split("\t");
    var row = $('<tr />');
    for(var x in cells) {
        row.append('<td>'+cells[x]+'</td>');
    }
    table.append(row);
}
// Insert into DOM
$('#excel_table').html(table);
}
</script>

The HTML:

<p>Paste excel data here:</p>  
<textarea name="excel_data" class="form-control" id="exampleFormControlTextarea1" rows="10"></textarea><br>
<input type="button" onclick="javascript:generateTable()" value="Generate Table"/>
<br><br>
    <p>Table data will appear below</p>
<hr>
<div id="excel_table"></div>

The problem is how to insert the data from table to Mysql database. Please help

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!