Export into csv problem

i want to export my data as csv from table but user can select which fields they need in csv format.
only those fields are exported in CSV file.
and all the fields in CSV are properly mapped with data.

the problem is, i have saved format in (format table) which user want to export .
format table fields - column name , format id
first user select which format they want
after that search for format id selected by user and get list of column name from that
now export only that columns during export

for an example
format table
id column
1 name
1 email
1 status

user select format id 1 then it export only name, email, status from table

This topic was automatically closed after 70 days. New replies are no longer allowed.