Hi guys,
I'm new here but I really need some help sorting my problem
Ok here it goes...
I have a class with a bunch of function to return each function's values from the database
What I want to achieve is to have a collection class where it returns all returned value of another class function
let's say
MyClass1->MyFunction( $profileID, $itemID ); <- this retrieves 1 specific row from the database according to what values you have entered.
and what I want to do is to populate MyClass1->MyFunction( $profileID, $itemID ); and loop it till it reaches the maximum row
ex.
MyClass1->MyFunction( $profileID, $itemID );
returns ROW1 = field1, field2, field3, field4
and loops again so
returns ROW2 = field1, field2, field3, field4
and loops again
returns ROW3 = field1, field2, field3, field4
and so on...
and so the final result to display in user's browser is
returns ROW1 = field1, field2, field3, field4
returns ROW2 = field1, field2, field3, field4
returns ROW3 = field1, field2, field3, field4
any help is appreciated.
sorry for my bad english...
~Jup