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>

 

Posted

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock