I can do this when I select a single-line tone, but tilt it to do this for multiple lines of data.
For one row, I simply create an instance of a new object that performs several operations behind the scenes that basically produce a row from the database as our object.
Example:
$object = new Classname($param); foreach($object->row as $key=>$value) { echo $key.":".$value."\n"; }
Any smart people here can point me in the right direction, please?
NOTE: you just want to be able to create an object for each row, and not for a single object with nested arrays
EDIT: sorry $ object-> row is a member of the class that stores the selected row from the database
source share