"You must submit a valid result object" returned even though I'm passing an object. |
[eluser]Josh Kendall[/eluser]
Hi, I hope someone can offer some advice. I'm trying to use the DB Utility to export a result as a CSV file. Problem is, I need to update part of the result before export. After about an hour of converting the result_array() to an object (since I couldn't update the object) I'm now being told "You must submit a valid result object", even though I'm submitting an object that looks exactly like the object $query->result() produces. Here is the results of printing a "true" result object: Code: Array and here is my object after making the changes and converting it from a result array to an object: Code: Array And here is the code I'm using in my controller: Code: // ------ EXPORT FUNCTIONS and this is the function that converts the array to an object: Code: function arr2obj($arg_array) { Any help would be appreciated. |
Messages In This Thread |
"You must submit a valid result object" returned even though I'm passing an object. - by El Forum - 02-04-2008, 11:44 AM
"You must submit a valid result object" returned even though I'm passing an object. - by El Forum - 02-04-2008, 06:14 PM
"You must submit a valid result object" returned even though I'm passing an object. - by El Forum - 03-15-2008, 11:03 AM
"You must submit a valid result object" returned even though I'm passing an object. - by El Forum - 09-16-2010, 04:01 AM
"You must submit a valid result object" returned even though I'm passing an object. - by El Forum - 09-16-2010, 08:56 AM
"You must submit a valid result object" returned even though I'm passing an object. - by El Forum - 09-16-2010, 08:59 AM
|