View Single Post
  #15  
Old 02-13-2013, 02:51 PM
Kamalya's Avatar
Kamalya Kamalya is offline
Member
 
Join Date: Jan 2013
Posts: 48
Gender: Female
Credits: 7,830
Kamalya is on a distinguished road
Default

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
__________________
Reply With Quote