Evan Ramge
New member
http://www.l2reliance.net/account/playeronline.html
When you go to this page, on my website. What do i need to change so that it will show the online players?
Here is my code:
<html>
<BODY BACKGROUND="bg.gif" BGCOLOR="#000000" TEXT="#FFFFFF">
<table border='5' align="left">
<tr><td><a href="index.html"><font size="+2" color="white"><b>Home</b></font></a></td></tr>
<tr><td><a href="playeronline.html"><font size="+2" color="white"><b>Online Players</b></font></a></td></tr>
<tr><td><a href="top_10_list_online.html"><font size="+2" color="white"><b>Top 10 online</b></font></a></td></tr>
<tr><td><a href="top_10_list_pkkills.html"><font size="+2" color="white"><b>Top 10 PK</b></font></a></td></tr>
<tr><td><a href="top_10_list_pvpkills.html"><font size="+2" color="white"><b>Top 10 PvP</b></font></a></td></tr>
<tr><td><a href="top_10_list_karma.html"><font size="+2" color="white"><b>Top 10 Karma</b></font></a></td></tr>
<tr><td><a href="top_100_list.html"><font size="+2" color="white"><b>Top 100 Players</b></font></a></td></tr>
<tr><td><a href="clan_list.html"><font size="+2" color="white"><b>Clan List</b></font></a></td></tr>
<!--
<tr>
<td><a href=""><font size="+2" color="white"><b></b></font></a></td>
</tr>
-->
</table>
<center>
<br><br><font size="+2"><b>Online Players</b></font>
<br>
<br>
<br>
<br>
<?php
function connect()
{
include "configs/script_config.php";
}
$sexes = array('M', 'F');
$levels = array('-100' => "Banned", '127' => "GM");
$FORM = "<table border='1'>
<tr>
<th class='Stil5' align=center>#</th>
<th class='Stil5' align=center>Player Online</th>
</tr>";
$query_chars = "select char_name from characters WHERE online=1;";
connect();
$link = mysql_query($query_chars);
$i=1;
$r=255;
while ( $row=mysql_fetch_row($link) )
{
$FORM .= "<tr>
<td class='Stil5' align=center>$i</span></td>
<td class='Stil5' align=center>$row[0]</td>
</tr>";
$i++;
$r -= 0;
}
mysql_close();
echo $FORM;
?>
</center>
</body>
</html>
When you go to this page, on my website. What do i need to change so that it will show the online players?
Here is my code:
<html>
<BODY BACKGROUND="bg.gif" BGCOLOR="#000000" TEXT="#FFFFFF">
<table border='5' align="left">
<tr><td><a href="index.html"><font size="+2" color="white"><b>Home</b></font></a></td></tr>
<tr><td><a href="playeronline.html"><font size="+2" color="white"><b>Online Players</b></font></a></td></tr>
<tr><td><a href="top_10_list_online.html"><font size="+2" color="white"><b>Top 10 online</b></font></a></td></tr>
<tr><td><a href="top_10_list_pkkills.html"><font size="+2" color="white"><b>Top 10 PK</b></font></a></td></tr>
<tr><td><a href="top_10_list_pvpkills.html"><font size="+2" color="white"><b>Top 10 PvP</b></font></a></td></tr>
<tr><td><a href="top_10_list_karma.html"><font size="+2" color="white"><b>Top 10 Karma</b></font></a></td></tr>
<tr><td><a href="top_100_list.html"><font size="+2" color="white"><b>Top 100 Players</b></font></a></td></tr>
<tr><td><a href="clan_list.html"><font size="+2" color="white"><b>Clan List</b></font></a></td></tr>
<!--
<tr>
<td><a href=""><font size="+2" color="white"><b></b></font></a></td>
</tr>
-->
</table>
<center>
<br><br><font size="+2"><b>Online Players</b></font>
<br>
<br>
<br>
<br>
<?php
function connect()
{
include "configs/script_config.php";
}
$sexes = array('M', 'F');
$levels = array('-100' => "Banned", '127' => "GM");
$FORM = "<table border='1'>
<tr>
<th class='Stil5' align=center>#</th>
<th class='Stil5' align=center>Player Online</th>
</tr>";
$query_chars = "select char_name from characters WHERE online=1;";
connect();
$link = mysql_query($query_chars);
$i=1;
$r=255;
while ( $row=mysql_fetch_row($link) )
{
$FORM .= "<tr>
<td class='Stil5' align=center>$i</span></td>
<td class='Stil5' align=center>$row[0]</td>
</tr>";
$i++;
$r -= 0;
}
mysql_close();
echo $FORM;
?>
</center>
</body>
</html>