CodeIgniter Forums
Troubleshooting my SQL query - 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: Troubleshooting my SQL query (/showthread.php?tid=26733)

Pages: 1 2


Troubleshooting my SQL query - El Forum - 01-22-2010

[eluser]Eric Cope[/eluser]
while in this simple example that may work, look into retrieving the whole object.
Code:
$query = $this->db->get('table');
$result = $query->result();

$result will be an array of objects.