Welcome Guest, Not a member yet? Register   Sign In
Returning number of rows
#3

[eluser]alvaroeesti[/eluser]


Thank you. Isn't that too long?

What I did is this:

Code:
return array($question->result(), $query->result() );

So, as you can see, I returned an array which is an array of arrays of objects.

Then at the controller I just took them out of the multidimensional array and worked with them. It works


Messages In This Thread
Returning number of rows - by El Forum - 10-14-2012, 07:00 AM
Returning number of rows - by El Forum - 10-14-2012, 08:30 AM
Returning number of rows - by El Forum - 10-14-2012, 08:37 AM
Returning number of rows - by El Forum - 10-14-2012, 08:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB