View Single Post
DAWG
Member
Join Date: Jul 2004
Old 05-09-2007 , 15:06   Re: TFC skills rank with speed run timer
Reply With Quote #52

If there is anyone still having the problem of player names not linking to their stats pages as described in my post on page 3 of this topic. It can be easily fixed by adding this line to each of the .php pages.

ADD THIS:
Code:
$steamid = $_GET["steamid"];
to the top so it looks like this:
Code:
<?
include("dbinfo.inc.php");
mysql_connect($host,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$steamid = $_GET["steamid"];
$query="SELECT `steamId`, `nickNames`, `nFinnished`, `rankTotal`, `primaryRank` FROM `skillrank` ORDER BY ABS(nFinnished) DESC";
$result=mysql_query($query);
I added mine right after line #4 (ie:the "mysql_select" line) and all is now working great.

NOTE: Use this method if registering globals on in the .HTACCESS did not fix the problem, (or if you don't/can't want to mess with the .HTACCESS file).
__________________

People are like slinkies. Not realy good for anything,
but they still put a smile on your face when you push'm down the stairs!

Last edited by DAWG; 05-09-2007 at 17:52.
DAWG is offline