Skip to main content
7 events
when toggle format what by license comment
May 14, 2015 at 19:26 comment added Nagarjun My bad, yes, since you are loading object list, you should use $row->fieldname syntax.
May 14, 2015 at 19:23 comment added Sosa I tried it, but it outputted nothing. It was able to output Mary with this that I wrote though. foreach ($result as $row) : echo "First name " . $row->firstname; endforeach; I wish there was a simpler way to write it though.
May 14, 2015 at 19:15 comment added Nagarjun echo $output['firstname'];
May 14, 2015 at 19:13 comment added Sosa That was extremely helpful thanks! The first part worked. Just another side noob question: How can I echo specific parts of that array? It outputs as Array ( [0] => stdClass Object ( [firstname] => Mary [lastname] => Bowman [leadname] => Advisor [lead_des] => President of the club ) )
May 14, 2015 at 19:10 vote accept Sosa
May 14, 2015 at 18:58 history edited Nagarjun CC BY-SA 3.0
added 84 characters in body
May 14, 2015 at 18:51 history answered Nagarjun CC BY-SA 3.0