Welcome Guest, Not a member yet? Register   Sign In
Extracting data from a result() array of objects.
#1

[eluser]behdesign[/eluser]
In the user guide and in various other sources, I've only ever seen foreach() loops being used to display a mysql result(). This works fine if there's only one object or row, but I want to create a page that deals with dozens of records collated from a mysql query. I know that the result() is an array of objects, but how do I structure my view to express the objects in the array?

I assume there's some form of loop that I can use, but various iterations of while() and nested foreach() have failed me. Can anyone help?

Thanks!


Messages In This Thread
Extracting data from a result() array of objects. - by El Forum - 12-16-2009, 06:26 PM
Extracting data from a result() array of objects. - by El Forum - 12-16-2009, 06:37 PM
Extracting data from a result() array of objects. - by El Forum - 12-17-2009, 10:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB