• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
possible to use csv_from_result on a non object?

#1
[eluser]hamobi[/eluser]
I am making a query and getting result_array

however after I get my array I am iterating through it to add a few new keys and values. I need to output this to csv, but the 'csv_from_result' function only accepts the $this-db->get() object. I have tried converting my array to an object using some functions I googled but nothing is doing the trick.

I keep getting the error 'must submit valid object' or whatnot. Anyone have experience with this?

#2
[eluser]hamobi[/eluser]
i ended up using this function instead

http://www.codehive.net/PHP-Array-to-CSV-1.html


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.