Codeigniter 2 not returning from model as object only as result array?

Unless you specify $dbdata->result_array() as $row It won't return the results as array. The same code which you've posted must be working in CI 2.0 If not, may be the problem with $this->db->get('sometable') Try with $this->db->query('select * from sometable') But as far as I know, both are same.

Unless you specify $dbdata->result_array() as $row , It won't return the results as array. The same code which you've posted must be working in CI 2.0. If not, may be the problem with $this->db->get('sometable').

Try with $this->db->query('select * from sometable'). But as far as I know, both are same...

2 This is correct. The code should work in CI2.0 without issues. You need to use result_array to get an array of arrays.

Otherwise the result is an array of objects. More here : codeigniter. Com/user_guide/database/results.

Html – Rahul 4 Mar at 3:28 You're preaching to the choir. I can't figure out why it's acting the way it is. If use $dbdata->result_array() as $row it works.

If I use $dbdata->result as $row, it does not work. I'll edit my text above to include the actual code. – user578994 Mar 26 at 4:09 See my code above – user578994 Mar 26 at 4:27 Anyone had a chance to check it out?

– user578994 Mar 28 at 13:41.

Ok folks, no lie, I found the freaking problem. Looking at the fourth td where $row->added; is at, there's a close parantheses at the end of it that was causing 4 days of mayhem. Kindest regards to all those who tried to help.

Sometimes it doesn't matter how many eyes are on it I guess.

I need a Codeigniter 2. X ACL + Authentication library. I need to give have 3 different admin users and 2 different front end users and want to set everything dynamically through database.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions