hello is there anyway to convert this pvp ladder display in website into mvp ladder too thank you
Quote
</div> <!-- ./castle-holders -->
<?php
// Get Top 10 PvP ladder
$sql = "SELECT pvpladder.char_id AS player_charid, pvpladder.name AS player_name, pvpladder.kills AS player_kills, pvpladder.deaths AS player_deaths, char.class AS job_class, char.base_level AS baseLvl, char.job_level AS jobLvl, char.sex AS gender FROM {$athenaServer->charMapDatabase}.pvpladder ";
$sql .= "LEFT JOIN {$athenaServer->charMapDatabase}.char ON pvpladder.char_id = char.char_id ";
$sql .= "ORDER BY `kills` DESC LIMIT 10";
$sth = $server->connection->getStatement($sql);
$sth->execute();
$top10list = $sth->fetchAll();
?>
/*
CREATE TABLE `mvpladder` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`char_id` int(11) unsigned NOT NULL default '0',
`mob_id` INT NOT NULL,
`kills` INT DEFAULT 0,
PRIMARY KEY (`id`),
INDEX (`char_id`),
INDEX (`mob_id`),
INDEX (`kills`)
) ENGINE=MyISAM AUTO_INCREMENT=1;
*/
Question
Sallycantdance
hello is there anyway to convert this pvp ladder display in website into mvp ladder too thank you
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.