Welcome Guest, Not a member yet? Register   Sign In
help with query
#6

[eluser]iainco[/eluser]
If you run into problems it might be because I usually use the "result_array" method which would mean changing "return $this->db->get('assets')->result();" to "return $this->db->get('assets')->result_array();" and in the view changing "<?=$asset->asset_id?>" to "<?=$asset['asset_id']?>".

PHP's print_r function is helpful when figuring out what is contained in result sets.


Messages In This Thread
help with query - by El Forum - 10-27-2008, 09:29 AM
help with query - by El Forum - 10-27-2008, 09:39 AM
help with query - by El Forum - 10-27-2008, 09:48 AM
help with query - by El Forum - 10-27-2008, 09:55 AM
help with query - by El Forum - 10-27-2008, 09:57 AM
help with query - by El Forum - 10-27-2008, 10:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB