View Single Post
  #1  
Old 04-02-2017, 01:27 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,449
Abronsyth is on a distinguished road
Default Some help with object issues?

Wow, another issue! Surprise!

Okay, I'll cut to the chase, I am having issues with this line;
PHP Code:
$bg $mysidia->db->select("owned_adoptables", array("adoptbackground"), "aid" '{$adopt->aid}')->fetchObject(); 
I'm trying to select the data listed in owned_adoptables under adoptbackground

I am getting this error when I try to call it:
Catchable fatal error: Object of class stdClass could not be converted to string in .../public_html/view/myadoptsview.php on line 312

Could someone possibly point out my error?
(For reference, I am making a new function on the myadopts/manage page to remove an item (background) from an adoptable. It needs to distinguish between whether or not the adoptable has a background already so that it doesn't give them an item they don't have).
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote