Macintosh Posted October 26, 2010 Posted October 26, 2010 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>
Angel Of Death Posted October 26, 2010 Posted October 26, 2010 This means you copied the code from someone's script about "players online" and you don't understand it :P
Macintosh Posted October 26, 2010 Author Posted October 26, 2010 well it was a guide off of this website! so, clearly i didnt!
Macintosh Posted October 26, 2010 Author Posted October 26, 2010 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.
Blane Posted October 26, 2010 Posted October 26, 2010 It seems you're not running php in your server. Could you also include your script_config.php?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now