Different column for csv_from_result function in written file? |
[eluser]jpganz[/eluser]
Hi, I am using csv_from_result to export my result to a cvs file, still I am having a problem with it, I wanna export the results separated each column on my cvs per field returned from my DB, I checked this post http://ellislab.com/forums/viewthread/214852/ and I tried the /t, but still no results, any other has this problem? I am using CI 2.1 here is my code Code: $this->load->dbutil(); Any help would be appreciated. Thanks
[eluser]CroNiX[/eluser]
I believe that should be a forward slash. \t is tab, not /t. Just like \r\n is linebreak/return.
[eluser]jpganz[/eluser]
with â\tâ nothing happends, like if it wouldnt exist.. not even an space, if is "/t" the /t is printed in the doc.
[eluser]CroNiX[/eluser]
What happens if you just use the default values, which would be a comma for the delimiter? Code: $queryreturn = $this->dbutil->csv_from_result($query);
[eluser]jpganz[/eluser]
with the comma it only shows the comma... it prints it (the comma was the first value I tried but didnt work) |
Welcome Guest, Not a member yet? Register Sign In |