Hallo ich lese über eine Page ne Information aus dem MySQL aus dieser Code sieht so aus:
Alles anzeigen
Es klappt alles nur möchte ich das er mir die Reihenfolge andersrum anzeigt als aktuell wie geht das ?
Bsp jetzt zeigt er das an:
ich möchte es aber andersrum haben so:
PHP-Quellcode
- <center><h1>Ban Log</h1>
- Die letzten 5 Banns
- <table class='MYTABLE'>
- <tr CLASS='MYTABLE'>
- <th CLASS='MYTABLE' height=40 width=80>Spieler</th>
- <th CLASS='MYTABLE' height=40 width=120>Datum</th>
- <th CLASS='MYTABLE' height=40 width=100>IP</th>
- <th CLASS='MYTABLE' height=40 width=180>Grund</th>
- <th CLASS='MYTABLE' height=40 width=90>Supporter</th>
- <th CLASS='MYTABLE' height=40 width=80>Aktuell Gebannt</th>
- </tr>
- <?php
- $result = mysql_query("SELECT * FROM `banlog` LIMIT 12");
- echo mysql_error();
- while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
- {
- $time = $row['time'];
- $name = $row['name'];
- $ip = $row['ip'];
- $reason = $row['reason'];
- $admin = $row['admin'];
- $banned = $row['banned'];
- if($banned == 0) $banned = 'Nein';
- if($banned == 1) $banned = 'Ja';
- echo " <tr CLASS='MYTABLE'>
- <td CLASS='MYTABLE' height=40 width=80>$name</td>
- <td CLASS='MYTABLE' height=40 width=120>$time</td>
- <td CLASS='MYTABLE' height=40 width=100>$ip</td>
- <td CLASS='MYTABLE' height=40 width=180>$reason</td>
- <td CLASS='MYTABLE' height=40 width=90>$admin</td>
- <td CLASS='MYTABLE' height=40 width=80>$banned</td>
- </tr>";
- }
- ?>
- </table>
- <p>
- <h1>Suche Bans</h1>
- <form action="logshow.php" method="post">
- <br>Spieler Name | IP Adresse <br>
- <input name="user" type="text"> <input name="ip" type="text">
- <br><input name="submit" value=' Eingabe ' type="submit">
- </form>
- </center>
Es klappt alles nur möchte ich das er mir die Reihenfolge andersrum anzeigt als aktuell wie geht das ?
Bsp jetzt zeigt er das an:
ich möchte es aber andersrum haben so: