I want the results to be a kind of Ranking board and the person with the most honor points is first and so on.
Buuttt, me being a php/sql nub has its let downs .
Problem part of the script so far:
$result = mysql_query("SELECT * FROM characters ORDER BY name LIMIT 0, 50"); echo "<table border='1'> <tr> <th>Name</th> <th>Login</th> <th>Security Level</th> <th>Banned</th> <th>Last Login</th> <th>1</th> <th>2</th> <th>3</th> <th>4</th> <th>honorPoints</th> <th>5</th> </tr>"; while($row = mysql_fetch_array($result)) /* <--- Line 32 */ { echo "<tr>"; echo "<td>" . $row['name'] . "</td>"; echo "<td>" . $row['race'] . "</td>"; echo "<td>" . $row['class'] . "</td>"; echo "<td>" . $row['gender'] . "</td>"; echo "<td>" . $row['level'] . "</td>"; echo "<td>" . $row['online'] . "</td>"; echo "<td>" . $row['playedtime'] . "</td>"; echo "<td>" . $row['publicNote'] . "</td>"; echo "<td>" . $row['guildid'] . "</td>"; echo "<td>" . $row['honorPoints'] . "</td>"; echo "<td>" . $row['killsLifeTime'] . "</td>"; echo "</tr>"; } echo "</table>";
I just want the top 50 players listed.
Problems:
When I run it, it has some problem with
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mounted-storage/home61c/sub007/sc38326-TTKC/www/honor.php on line 32
How can I make it so it displays a list of numbers at the start of the table descending from 1 > 50 IE Ranking the players.
How can I make the First player bold, font size something like 32, second player bold, font size something like 27 and out line the top 3 players?
I'm not really sure about editing appearance of the results individually as you can see .
Any help is much appreciated!!
Thanks so much guys,
-Linden