Raggaer
Godly Member
Hello, this is a simple topfraggers page for znote acc, TESTED ON TFS_03
create a file called fraggers.php and add this
No time for photo sorry, we are done!
Ejoy :.3
create a file called fraggers.php and add this
Thanks
- - - Updated - - -
BTW edited code to work with table, the one I posted was bugged, sorry xD update main post, thanks
PHP:<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?> <h2>Top Fraggers</h2> <?php $i = 0; $ee = mysql_query("SELECT `p`.`name` AS `name`, COUNT(`p`.`name`) as `frags` FROM `killers` k LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id` LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id` WHERE `k`.`unjustified` = 1 AND `k`.`final_hit` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 0,30;")or die(mysql_error()); echo '<table><tr class="yellow"><td>Name</td><td>Frags</td></tr>'; while($e = mysql_fetch_assoc($ee)) { $i++; echo '<tr><td>'.$e['name'] .'</td> <td> '.$e['frags'].'</tr><br>'; } echo '</table>'; ?> <?php include 'layout/overall/footer.php'; ?>
No time for photo sorry, we are done!
Ejoy :.3
Last edited by a moderator: