Helf mir bitte, hier der gesamte Absatz:
PHP-Code:
<?
$platz = db_query("SELECT * FROM ".$db_prefix."_tbettelrally WHERE punkte > '".$ralleydaten['minimum']."' ORDER BY punkte DESC LIMIT 20");
while ($pa = mysql_fetch_array($platz)) {
$userdaten = mysql_fetch_array(db_query("SELECT 'nickname' FROM ".$db_prefix."_userdaten WHERE uid=".$pa['uid']." LIMIT 1"));
$rp++;
if ($ralleydaten['art'] == 'statisch') {
$mg = number_format($ralleydaten['p'.$rp],2,",",".");
} else {
$mg = number_format($ralleydaten['jackpot'] / 100 * $ralleydaten['p'.$rp],2,",",".");
}
if ($rp > $ralleydaten['plaetze']) $mg = '----';
echo '
<tr bgcolor="">
<td align="center">'.$rp.'</td>
<td align="center">'.$pa['uid'].'</td>
<td align="center">'.$userdaten['nickname'].'</td>
<td align="right">'.number_format($pa['punkte'],2,",",".").' </td>
<td align="right">'.$mg.' </td>
</tr>
';
}
for($x=$rp+1;$x<21;$x++){
if ($ralleydaten['art'] == 'statisch') {
$mg = number_format($ralleydaten['p'.$x],2,",",".");
} else {
$mg = number_format($ralleydaten['jackpot'] / 100 * $ralleydaten['p'.$x],2,",",".");
}
if ($x > $ralleydaten['plaetze']) $mg = '----';
echo '
<tr bgcolor="">
<td align="center"></td>
<td align="center">N/A</td>
<td align="center">N/A</td>
<td align="right">0 </td>
<td align="right">'.$mg.' </td>
</tr>
';
}
?>
Das was mich so fertig macht sind die ' oder " oder manchmal beide '" in einer Abfrage.