Getting MySQL data as stdClass Object - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Getting MySQL data as stdClass Object (/showthread.php?tid=45007) |
Getting MySQL data as stdClass Object - El Forum - 09-04-2011 [eluser]Unknown[/eluser] Hello Everyone, Since a few weeks i'm using CodeIgniter.. i was like woah! this is great. And it is, my coding times have definately decreased. But now i'm struggling with this: if i get some information from my Database with the lines: Code: <?php I will get this in return: Code: <?php Array ( [0] => stdClass Object ( [id] => 1 [login] => OnceUponATim [password] => 123 ) ) This will not work with the HTML Table class. Is there a way to do it differently to get it as an array instead of a stdClass Object? (Sorry for my noobish question) |