CodeIgniter Forums
generate a csv template - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: generate a csv template (/thread-60203.html)

generate a csv template - El Forum - 02-04-2014


I need to generate a csv template for users based on the value of the columns in the table's row.

For example lets say the table has 3 columns:

id, name_selected, email_selected.

For row id = 8, if the value of name_selected = 1, I need to add name to the csv.

Same if the value of email_selected is 1, I need to add email to the csv.

Would you please guide how I can do this.