Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB