Welcome Guest, Not a member yet? Register   Sign In
issue CI_DB_oci8_result could not be converted to string
#4

[eluser]alboyd[/eluser]
How are you trying to check the value of $othervalue?

My guess is you are doing something like
Code:
echo $othervalue;

However you need to determine how many rows you are expecting to see returned from your query and understand that $othervalue is an object of query results. The results will be in the format of $othervalue->row(x)->value2 (based on your example query).

If you expect to only get one row returned then you would do something like to this to debug the value:
Code:
if ($othervalue->num_rows() == 1)
{
echo $othervalue->row(1)->value2;
}


Messages In This Thread
issue CI_DB_oci8_result could not be converted to string - by El Forum - 08-30-2009, 09:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB