CodeIgniter Forums
Troubleshooting my SQL query - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Troubleshooting my SQL query (/thread-26733.html)

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.