Aleada
Unknown Member
- Joined
- Mar 14, 2013
- Messages
- 231
- Reaction score
- 7
Heya everyone, I'm trying to make a frags page for my website but it's only showing 1 player (The player with the most frags) it's not showing more than 1 :/ it's probably something really simple but I can't seem to figure it out :/ Anyways... here's the scripts:
Btw I'm using Znote AAC!
PHP:
<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?>
<h2>Top PVP Players</h2>
<?php
$getfrags = mysql_query("SELECT `frags`, `level`, `name` FROM `players` ORDER BY `frags` DESC");
$fetchfrags = mysql_fetch_assoc($getfrags);
$frags = $fetchfrags['frags'];
echo '<table border="0">
<tr class="yellow"><td>Player</td><td>Level</td><td>Frags</td></tr>';
echo '<tr><td>';
echo '<a href="characterprofile.php?name='.$fetchfrags['name'].'">'.$fetchfrags['name'].'</a>';
echo '</td><td>';
echo $fetchfrags['level'];
echo '</td><td>';
echo $frags;
echo '</td></tr>';
echo '</table>';
?>
<?php include 'layout/overall/footer.php'; ?>
Btw I'm using Znote AAC!