Welcome Guest, Not a member yet? Register   Sign In
4096 CI_DB_mysql_result could not be converted to string
#3

[eluser]Unknown[/eluser]
That is correct, the object returned from FUNCTION A is a database object. Based on your assessment, I made the changes below "Revised Code" and no longer getting the 4096. Thanks.

FUNCTION A
Code:
$this->db->select('columnF');
$this->db->where('varX', $varX);
$query = $this->db->get('table2');

if($query) {
  return $query;
}else{
  return FALSE;
}

REVISED CODE:
Code:
$varX = $this->input->post('param1', TRUE);
$varY = $this->input->post('param2', TRUE);
$varW = $this->functionA->getValue($varX);

**$varZ = $varW->row('colW') . $varY;          //CHANGED

$this->db->where('colX', $varX);
$this->db->where('colY', $varZ);
$query = $this->db->get('table1');


Messages In This Thread
4096 CI_DB_mysql_result could not be converted to string - by El Forum - 10-20-2009, 02:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB