Welcome Guest, Not a member yet? Register   Sign In
Why this error appears stdClass::$pic_item?
#5

READ the error message! You are looping through a query result, assigning each to $pic_item. Then, in your view, you attempt to reference the pic_item property of $pic_item, and you are being told that $pic_item is not an object. Do a var_dump of $pic_item to see what it is.

You'll need to do the var_dump before referencing $pic_item->pic_item. Your var_dump is not reached beecause of the error message.
Reply


Messages In This Thread
RE: Why this error appears stdClass::$pic_item? - by ciadmin - 02-27-2017, 03:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB