Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter get_where
#4

[eluser]n0xie[/eluser]
If you return the result object you can't loop over it in your view.

So either return the MySQL object like this:
Code:
return $this->db->get_where('files', array('owner =' => '$owner'));

or change your view:
Code:
<?php foreach($query as $row): ?>


Messages In This Thread
CodeIgniter get_where - by El Forum - 10-16-2009, 04:42 AM
CodeIgniter get_where - by El Forum - 10-16-2009, 04:47 AM
CodeIgniter get_where - by El Forum - 10-16-2009, 04:56 AM
CodeIgniter get_where - by El Forum - 10-16-2009, 05:18 AM
CodeIgniter get_where - by El Forum - 10-16-2009, 05:27 AM
CodeIgniter get_where - by El Forum - 10-16-2009, 06:07 AM
CodeIgniter get_where - by El Forum - 10-16-2009, 06:15 AM
CodeIgniter get_where - by El Forum - 10-16-2009, 06:28 AM
CodeIgniter get_where - by El Forum - 10-16-2009, 06:37 AM
CodeIgniter get_where - by El Forum - 10-16-2009, 07:44 AM
CodeIgniter get_where - by El Forum - 10-16-2009, 07:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB