I forgot to tell you to add this:
So instead of this: (it occurs at least twice in the file)
Code:
$stmt = $adopts->query("SELECT * FROM {$prefix}owned_adoptables WHERE owner='{$loggedinname}' and aid='{$id}'");
you can use this:
Code:
$stmt = $adopts->query("SELECT * FROM {$prefix}owned_adoptables, {$prefix}levels WHERE owner='{$loggedinname}' and aid='{$id}' and type=adoptiename and currentlevel=thisislevel");
It makes it go with the current level, otherwise w/e your last level is will not have the description and it will be a little messed up :D