Welcome Guest, Not a member yet? Register   Sign In
Use column name as the array key for db->result_array()
#4

[eluser]toopay[/eluser]
[quote author="wyred" date="1309797074"]...the function doesn't accept any parameters.[/quote]

For that helpful feature, CI db indeed doesn't support. But create an extra function/helper (like your above code) to achieve that, will be consume same memory with Kohana DB class i believe.


Messages In This Thread
Use column name as the array key for db->result_array() - by El Forum - 07-03-2011, 08:56 PM
Use column name as the array key for db->result_array() - by El Forum - 07-04-2011, 05:05 AM
Use column name as the array key for db->result_array() - by El Forum - 07-04-2011, 05:31 AM
Use column name as the array key for db->result_array() - by El Forum - 07-04-2011, 05:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB