[Help]Website Page

Experienced Elementalist
Joined
Nov 16, 2008
Messages
239
Reaction score
0
Hey guys do you know how to fix the ranking page,my problem is that when i enter the ranking and the ranking start in the middle of the page,so i need to scroll down to see the ranking,the ranking doesn't start top of the page to the bottom,it started in the center..so in the ranking page,the upper part is like a blank.
 
here is my script...maybe it will help you


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>BloodyFlyff</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(layout/bg_texto.jpg);
}
body,td,th {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
a {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FFFFFF;
}
a:hover {
text-decoration: none;
color: #333333;
}
a:active {
text-decoration: none;
color: #999999;
}
#Layer1 {
position:absolute;
left:75px;
top:161px;
width:58px;
height:20px;
z-index:1;
}
.style1 {
color: #000000;
font-weight: bold;
}
.style2 {color: #FF0000}
-->
</style></head>

<body>
<div align="center"><center>
<table border=1 bordercolor=black width=300 cellpadding='0' cellspacing='0'><tr>
<td align=center><font size=5>Character Ranking</font></td>
</tr></table>

<table border=1 bordercolor=black width=300 cellpadding='0' cellspacing='0'><tr>
<td>Rank</td><td>Name</td><td>Level</td><td>Class</td><td>Gender</td></tr><tr>
<?php
//All credits go to Rad
require('config.php');
$log_query = mysql_db_query("$db","SELECT `charname`,`level`,`sex`,`accountname`,`exp`,`class` FROM characters WHERE `level` > 0 ORDER BY level DESC LIMIT 501");
$num = mysql_num_rows($log_query);
$i=1;
while ($i < $num) {
$log_row = mysql_fetch_row($log_query);
$char = $log_row[0];
$level = $log_row[1];
$sex = $log_row[2];
if ($sex == 0) { $sex2 = M; }
if ($sex == 1) { $sex2 = F; }
$accountname = $log_row[3];
$exp = $log_row[4];
$job = $log_row[5];
if ($job == 0) { $job2 = Vagrant; }
if ($job == 1) { $job2 = Mercenary; }
if ($job == 2) { $job2 = Acrobat; }
if ($job == 3) { $job2 = Assist; }
if ($job == 4) { $job2 = Magician; }
if ($job == 5) { $job2 = Puppeteer; }
if ($job == 6) { $job2 = Knight; }
if ($job == 7) { $job2 = Blade; }
if ($job == 8) { $job2 = Jester; }
if ($job == 9) { $job2 = Ranger; }
if ($job == 10) { $job2 = Ringmaster; }
if ($job == 11) { $job2 = Billposter; }
if ($job == 12) { $job2 = Psykeeper; }
if ($job == 13) { $job2 = Elementor; }
if ($job == 14) { $job2 = GateKeeper; }
if ($job == 15) { $job2 = Doppler; }
if ($job == 16) { $job2 = Knight; }
if ($job == 17) { $job2 = Blade; }
if ($job == 18) { $job2 = Jester; }
if ($job == 19) { $job2 = Ranger; }
if ($job == 20) { $job2 = Ringmaster; }
if ($job == 21) { $job2 = Billposter; }
if ($job == 22) { $job2 = Psykeeper; }
if ($job == 23) { $job2 = Elementor; }
if ($job == 24) { $job2 = Knight; }
if ($job == 25) { $job2 = Blade; }
if ($job == 26) { $job2 = Jester; }
if ($job == 27) { $job2 = Ranger; }
if ($job == 28) { $job2 = Ringmaster; }
if ($job == 29) { $job2 = Billposter; }
if ($job == 30) { $job2 = Psykeeper; }
if ($job == 31) { $job2 = Elementor; }
echo "<td> $i </td><td> $char </td><td> $level </td><td> $job2 </td><td> $sex2 </td></tr><tr>";
$i++;
}
?>
</tr></table> </div>
<div align="center"></div>
</body>
</html>
 
Back