If you have any questions about how to export csv files in php, do you know why html source code appears in the file when php downloads the csv file; the xls file is normal ------ solution ------------------ based on your poor description, I can only give a bad answer-your code has a problem ------ solution --------- about php export csv
Online, etc. ask if you know why html source code appears in the file when php downloads a csv fileThe xls file is normal.
------ Solution --------------------
Based on your poor description, I can only give one bad answer-your code has a problem.
------ Solution --------------------
Generated
To see your code
------ Solution --------------------
The last table is not closed.
------ Solution --------------------
Header ("Content-Type: text/csv ");
Header ("Content-Type: text/xls ");
How to send two content-type headers