Export data only read 1 data even though there is more

Export data only read 1 data even though there is more

gesselgessel Posts: 1Questions: 1Answers: 0
edited August 2021 in Buttons

Im trying to export data using buttons but it's only read the first row. The data is collected from database using php.
Here is the code :

Here is the web, as you can there is more than 1 data

But, when i try to export the data, for example i want to copy the data, its only read the first data

Any solution ? Thanks before.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    Answer ✓

    You are outputting a new tbody for every row! Move the tbody outside your while loop and it will all work nicely :).

    Allan

Sign In or Register to comment.