IDinWinGs Posted January 13, 2017 Share Posted January 13, 2017 I have trouble in modifying PHPExcel library. I have search through Google and search option here. But i cannot found the solution. I have successful in export all the column from my table into Excel. But the problem now is I want export only selected column to Excel file. Example : I have 3 checkbox (A,B,C) equivalent with column (A,B,C) from my database table . I want to export only column A so that I check only checkbox A. If I want export column B & C then I will check the checkbox B & C. I hope you guys can help me with this. Thank you ! Quote Link to comment Share on other sites More sharing options...
Destramic Posted January 13, 2017 Share Posted January 13, 2017 (edited) check out fgetcsv http://www.php.net/manual/de/function.fgetcsv.php why are you exporting database table, then reading from a csv?...why not read directly from the database? Edited January 13, 2017 by Destramic Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.