If you want the level name to change you could do this:
PHP Code:
if($currentlevel == "0"){
$levelname="Insert what you want here";
}
else if($currentlevel == "1"){
$levelname="Insert what you want here";
}
And then use $levelname whenever you refer to the level.
You should add if the currentl level is 2, 3, 4, and so on (depending on how many levels you are using).
If you want the actual pet's name to change you could do this:
PHP Code:
if($currentlevel == "0"){
$petname="Insert what you want here";
}
else if($currentlevel == "1"){
$petname="Insert what you want here";
}
And then use $name whenever you refer to the pet's name.
You should add if the currentl level is 2, 3, 4, and so on (depending on how many levels you are using).
I use titles in my site so when a pet reaches a certain level they have a title before their actual name. Such as Prince Polly or King Polly.
So i put $petname before I put the pet's actual name (which I think is usually refered to as $name).
So $name get's Polly from the database but $petname get's it's info from the if statement referring to the current level.