Lopaskurwa
Active Member
- Joined
- Oct 6, 2017
- Messages
- 884
- Solutions
- 2
- Reaction score
- 49
Hi
i have two questions. First one how to make a path on this line when you press on player name
It should go to his character information page
Second question, how to add color with php? lets say i want text "lvl:" to be red
i have two questions. First one how to make a path on this line when you press on player name
PHP:
foreach(getTopPlayers(5) as $player)
{
echo '<li class="bg6"><href="' . getPlayerLink($player['name'], false) . '" class="link2">' . truncate($player['name'],8) . '</a>';
echo '<class="style2"> lvl: <b>' . $player['level'] . '</b></li>';
}
Second question, how to add color with php? lets say i want text "lvl:" to be red