Welcome Guest, Not a member yet? Register   Sign In
Generate a CSV file?
#1

[eluser]chefnelone[/eluser]
Hello,

I have a table (sql) with clients' data. I'd like to generate (on the fly) a csv file with this data to be ready to download.

Is there any library or class to do this?
#2

[eluser]LuckyFella73[/eluser]
Hi chefnelone,

There is this nice function (Database Utilities):
http://ellislab.com/codeigniter/user-gui...s.html#csv

Additionally you can use the file helper "write_file" to sava the .csv data on
your webserver.
#3

[eluser]chefnelone[/eluser]
thanks luckyfella
Really useful function.
#4

[eluser]Unknown[/eluser]
Hello,
I want to insert a CSV file into a mysql table (the inverse of Generating CSV file from sql table)
I searched the forum but couldn't find any example.
I appreciate if anybody link a brief procedure of doing that.
#5

[eluser]LuckyFella73[/eluser]
The easiest way would be to import your csv file via phpmyadmin.




Theme © iAndrew 2016 - Forum software by © MyBB