Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "localhost";
- $user = "****";
- $pass = "****";
- $realmd = "***";
- $characters = "***";
- $world = "***";
- mysql_connect($host, $user, $pass);
- mysql_select_db($characters);
- $honor_lekerdezes = mysql_query("SELECT * FROM `characters` ORDER BY `totalHonorPoints` DESC LIMIT 0 , 5");
- while ( $h=mysql_fetch_row($honor_lekerdezes) ) {
- $honor .= "<tr>
- <td>".$h['2']."</td>
- <td>".$h['41']."</td>
- <td>".$h['44']."</td>
- </tr>";
- }
- print '<fieldset class="logged">';
- print "<table width='100%' border='0'>";
- print "<tr>
- <td width='100'>name</td>
- <td width='100'>totalHonorPoints</td>
- <td width='100'>totalKills</td>
- </tr>";
- print $honor;
- print "</table></fieldset>";
- mysql_close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement