habe mal wieder eine kleine Frage...diesmal in Richtung PHP.
Unzwar nutze ich das Ranking script von Hennik.
PHP Code:
<center><table style="color:#fff;" border="0">
<tr>
<th width="150">Platz</th>
<th width="150">Name</th>
<th width="150">Level</th>
<th width="150">Exp</th>
<th width="150">Reich</th>
</tr>
</table></center>
echo "<center><table style='color:#fff;' border=\"0\">"; // Open table
$i = 0 + $get;
while($array = mysql_fetch_array($query)) {
$i = $i + 1;
echo "
<tr>
<th width=\"150\"><font color=\"white\">" . $i . "</font></th>
<th width=\"150\"><font color=\"white\"><a href=\"index.php?page=player&char=",$array["name"],"\">",$array["name"],"</a></font></th>
<th width=\"150\"><font color=\"white\">" . $array["level"] . "</font></th>
<th width=\"150\"><font color=\"white\">" . $array["exp"] . "</font></th>";
$reich = "SELECT empire from player_index where id = " . $array[account_id] . "";
$query2 = mysql_query($reich);
$array2 = mysql_fetch_array($query2);
if($array2["empire"] == 1) {
echo "<th width=\"150\"><img src=\"images/icons/shinsoo.jpg\"></th></tr>";
} elseif($array2["empire"] == 2) {
echo "<th width=\"150\"><img src=\"images/icons/chunjo.jpg\"></th></tr>";
} else {
echo "<th width=\"150\"><img src=\"images/icons/jinno.png\"></th></tr>";
}
}
echo "</table></center><br>"; // close table
vielen dank im vorraus =)