CodeIgniter Forums
generate a csv template - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: generate a csv template (/thread-60203.html)



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

[eluser]behnampmdg3[/eluser]
Hi;

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.

Thanks.