Welcome Guest, Not a member yet? Register   Sign In
getting non-object error only in log file
#4

(This post was last modified: 09-10-2017, 07:36 PM by ardavan.)

Something is wrong!
I just realized it!

even with this activerecord,
PHP Code:
$this->db->get_where($tablename$cond)->result(); 
supposed to get the result in an array, but still is an object
Code:
array(1) { [0]=> object(stdClass)#27 (2) {
this is my output!

even if I change the result type to
PHP Code:
$this->db->get_where($tablename$cond)->result_array(); 
i get nested array!
Code:
array(1) { [0]=> array(2) {

Why am i getting nested?
Reply


Messages In This Thread
RE: getting non-object error only in log file - by ardavan - 09-10-2017, 07:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB