Welcome Guest, Not a member yet? Register   Sign In
how is convert this code to CodeIgniter code?
#9

[eluser]Mat-Moo[/eluser]
Your mixing "Active records" with basic sql, you need something more like
Code:
foreach ($result->result() as $row)
{
    $data[] = array('name' => $row->name)
}
Something like that anyway Smile

http://ellislab.com/codeigniter/user-gui...ecord.html
First section on the get() has a better example


Messages In This Thread
how is convert this code to CodeIgniter code? - by El Forum - 07-14-2011, 09:10 AM
how is convert this code to CodeIgniter code? - by El Forum - 07-14-2011, 09:32 AM
how is convert this code to CodeIgniter code? - by El Forum - 07-14-2011, 09:35 AM
how is convert this code to CodeIgniter code? - by El Forum - 07-14-2011, 10:01 AM
how is convert this code to CodeIgniter code? - by El Forum - 07-14-2011, 10:11 AM
how is convert this code to CodeIgniter code? - by El Forum - 07-14-2011, 10:13 AM
how is convert this code to CodeIgniter code? - by El Forum - 07-14-2011, 10:23 AM
how is convert this code to CodeIgniter code? - by El Forum - 07-15-2011, 02:26 AM
how is convert this code to CodeIgniter code? - by El Forum - 07-15-2011, 07:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB