Jump to content

Recommended Posts

Posted

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>

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...