ranking mit limit

05/06/2011 01:37 TKB#1
Hallo epvp,
ich möchte in der rank.php von Lucy_Girl ein Limit setzten also damit z.B. nur die Top 50 angezeigt werden und ne such funktion. Ich möchte das genau so wie da unten haben halt nur das die Top 50 anzeigt werden und eine sufu. Ich habe schon alles versucht da kommt aber immer sql oder syntax error. :)

PHP Code:
<?php
   session_start 
(); //Session starten//
  
include ("templates/header.html"); 
         include (
"templates/rank.html");  
include (
"config_player.php");


$sql "SELECT  
    *
    FROM 
  player 
  ORDER BY level DESC"
;
      
$i "0" ;
   
$ergebnis mysql_query($sql);
 
$ergebnis mysql_query($sql);
while(
$row mysql_fetch_object($ergebnis))
   {
   
$i $i ;
   echo 
"
   <center><table border=0>
  <tr>
    <th width=\"80\"><font color=red>
$i</font></th>
    <th width=\"200\"><font color=pink>
$row->name</font></th>
    <th width=\"200\"><font color=green>
$row->exp</font></th>
    <th width=\"200\"><font color=red>
$row->level</font></th>
  </tr>
</table></center>"
;  
   }
echo 
"</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
</td>
</tr>
</table>
</body>
</html>" 
;
?>
Kann mir pls jemand helfen :rtfm: :handsdown: