Skip to content

[Help] What does this mean?

Featured Replies

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>

 

This means you copied the code from someone's script about "players online" and you don't understand it :P

  • Author

well it was a guide off of this website! so, clearly i didnt!

configs/script_config.php

  • Author

I have included this, except i changed it to script_config.php since it was not in a configs folder. I edited everything in that php file and it did nothing.

It seems you're not running php in your server.

 

Could you also include your script_config.php?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.