Hope that helps.PHP Code:$conts = file_get_contents('highscores.txt');
$lines =explode("\n", $conts);
echo '<table width="100%" border="1"><tr><th>Player Name</th><th>Reputation</th></tr>';
foreach($lines As $line) {
list ($playerName, $playerReputation) = split ('|', $line);
echo '<tr><td>'.$playerName.'</td><td>'.$playerReputation.'</td></tr>';
}
echo '</table>';




Reply With Quote