10.07.2012, 16:53
Код:
Parse error: syntax error, unexpected T_AS, expecting ';' in /home/kevin/public_html/online.php on line 60
PHP код:
<?php
$query = new SampQuery("178.32.227.161", 7777);
if ($query->connect()) {
echo "<table><tr><td><strong>ID</strong></td><td><strong>Name</strong></td><td><strong>Score</strong></td><td><strong>Ping</strong></td></tr>";
$players = $query->getDetailedPlayers();
foreach ($players as $player) { //line 60.
echo "<table><tr><td>{$player['playerid']}</td><td>{$player['nickname']}</td><td>{$player['score']}</td><td>{$player['ping']}</td></tr>";
}
echo "</table>";
} else {
echo "Error: Couldn't connect to server.";
}
?>