Highscores list redirect to homepage for 1 value

Ok, I know the title may be a bit confusing, so ill explain here.
I am developing highscores for a Runescape private server, but when you click on 1 of the names (Strength) it redirects to the homepage
I have htaccess rewriterules set up correctly, as they are all working for the other values

[php]function getList(){
$homedir = “http://localhost/”;
$skills = “Attack, Defence, Strength, Hitpoints, Ranged, Prayer, Magic, Cooking, Woodcutting, Fletching, Fishing, Firemaking, Crafting, Smithing, Mining, Herblore, Agility, Thieving, Slayer, Farming, Runecrafting, Hunter, Construction, Summoning, Dungeoneering”;
$list = explode(’, ', $skills);
?>

  • Overall

  • <?php for($i=0; $i
  • <?= $list[$i]; ?>

  • <?php }
    }[/php]

    If anybody can help me then that would be absolutely brilliant as I cannot figure out where its going wrong

    Well, not sure on what you are asking. First, go to the page where this is displayed.
    Then, RIGHT-CLICK on it and select VIEW-SOURCE.

    This will give you the “LIVE” HTML and you can see where the error is.
    Then, look at your code and see where it is wrong.

    Or, post a link to the live page so we can see what you are talking about.
    Or, even just post a segment of the live code from the live page where it displays the links.

    I would guess it might be some small issue with the rewrite code. did anyone verify the rewrite code?

    Lastly, did you run your code thru the W3 Validator to check it for other errors?

    Well, more questions than answers for you.

    Sponsor our Newsletter | Privacy Policy | Terms of Service