Ranking Script!

12/02/2009 13:03 .achi#16
<?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 + 1 ;
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>" ;
?>


Das müsste es sein :D

MfG
12/02/2009 13:04 DraaaKe#17
Code:
<?php
   session_start ();
         include ("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 + 1 ;
   echo "
   <center><table border=0>
  <tr>
    <th width=\"200\"><font color=black>$i</font></th>
    <th width=\"200\"><font color=black>$row->name</font></th>
    <th width=\"200\"><font color=black>$row->exp</font></th>
    <th width=\"200\"><font color=black>$row->level</font></th>
  </tr>
</table></center>";  
   }
echo "</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
</td>
</tr>
</table>
</body>
</html>" ;
?>
Viel Spaß und danke nochma^^
12/02/2009 13:07 MC_Muffin#18
Mir auch bitte:o
12/02/2009 13:07 .achi#19
Quote:
Originally Posted by fighter28 View Post
Code:
<?php
   session_start ();
         include ("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 + 1 ;
   echo "
   <center><table border=0>
  <tr>
    <th width=\"200\"><font color=black>$i</font></th>
    <th width=\"200\"><font color=black>$row->name</font></th>
    <th width=\"200\"><font color=black>$row->exp</font></th>
    <th width=\"200\"><font color=black>$row->level</font></th>
  </tr>
</table></center>";  
   }
echo "</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
</td>
</tr>
</table>
</body>
</html>" ;
?>
Viel Spaß und danke nochma^^

Hab ich was verpasst? :D
12/02/2009 13:08 RealEmX#20
Das ist doch ohne Reich XD
Ich glaube er wollte einfach nur sein Rankscript hier posten damit downi es bearbeitet XD
12/02/2009 13:10 .achi#21
Das mit den Reichen ist mir eigentlich egal, ich will nur keine GA´s und GM´s in der Liste :D
12/02/2009 13:17 MC_Muffin#22
Quote:
Originally Posted by xxxAchixxx View Post
Das mit den Reichen ist mir eigentlich egal, ich will nur keine GA´s und GM´s in der Liste :D
Ich auch, aber wenn er das nocht mit den Reichen macht, passts auch;)
12/02/2009 13:19 .achi#23
Jupp würd ich auch sagen^^
12/02/2009 13:22 DraaaKe#24
Lies doch nächstes mal von Anfang an Achi^^ das mit keine GMs und GAs ist einfach^^ nimm mein script. mach einfach alle GMs und GAs auf level 100 durch die db und dann lass in deinem rank script einfach nur das einzeigen was lvl 1-lvl99 ist. tada, schon sind die GMs und GAs weg. Geht natürlich auch komplizierter^^
12/02/2009 13:27 .achi#25
D.h ich muss mit deinem Script nur noch in der DB die GM´s und GA´s auf 100 machen?
12/02/2009 13:29 DraaaKe#26
Ne mein script zeigt alles an, das will ich ja so, aber ich kann dir das ändern wenn du möchtest^^
12/02/2009 13:30 .achi#27
Wäre nett, also wie gesagt GM´s und GA´s sollten nicht angezeigt werden^^
12/02/2009 13:31 DraaaKe#28
k ich versuchs^^ ich teste das dann schnell noch und dann poste ich das hier
12/02/2009 13:32 .achi#29
Ok, bekommst dann auch en THX^^
12/02/2009 13:44 Daunenjacke#30
xxxAchixxx
Try it.
Try it

//Ich habe BEIDE nicht getestet :D