Damit lese ich eine datenbank aus, mit spielern und sie wreden nach level geordnet wie muss ich es machen das davor noch 1. 2. 3. steht etc ?

Code:
<?php //Includes require_once "inc/func.php"; echo"</a> <table width='300px' class='tbl-border'> <tr> <td width='200px' class='tbl2'>Nick </td> <td width='100px' class='tbl2'>Level </td> </tr> </table> <table width='300px' class='tbl-border'>"; //DB Abfrge $result = dbquery("SELECT * FROM player WHERE name NOT LIKE '[GM]%' AND name NOT LIKE '[GA]%' AND name NOT LIKE '[CoMa]%' AND name NOT LIKE '[SA]%' AND name NOT LIKE '[MoD]%' AND name NOT LIKE '[EV]%' AND name NOT LIKE '[TGM]%' ORDER BY level desc"); while ($data = dbarray($result)){ echo "<tr> <td width='200px' class='td'><h6>".$data['name']." </td> <td width='100px' class='td'><h6>".$data['level']." </td> </tr>"; } echo "</table></center>"; ?>
Kommentar