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

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

(09-11-2017, 03:04 AM)InsiteFX Wrote: // should be
$this->db->get_where($tablename, $cond->result_array()); [/php]

I've never seen such thing as this ^
That's not gonna work...

The $cond is my array which I pass to the model function.
And i believe the result_array() is query output https://www.codeigniter.com/user_guide/d...ult-arrays
PHP Code:
$this->db->get_where('MYTABLE', array('URL' => 'abcd'))->result_array(); 

By the way, I'm running CI 3.1.5, PHP 5.6
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB