Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <title>Lista Bannati CruserMt2</title>
- <body bgcolor="black" text="white">
- <table border="5" width="30%" align="center">
- <tr><th>Posizione</th><th>ID ACCOUNT</th><th>STATUS</th></tr>
- <?
- include("conn.php");
- mysql_select_db("account");
- $query = mysql_query("SELECT * FROM account WHERE status NOT LIKE 'OK' ORDER BY login DESC LIMIT 100");
- $i=1;
- $num=mysql_num_rows($query);
- while($i < $num){
- $row=mysql_fetch_array($query);
- $name=$row["login"];
- $level=$row["status"];
- if ($i>=4){
- $pos=$i."<sup>th</sup>";
- }elseif ($i==1){
- $pos=$i."<sup>st</sup>";
- }elseif ($i==2){
- $pos=$i."<sup>nd</sup>";
- }elseif ($i==3){
- $pos=$i."<sup>rd</sup>";
- }
- ?>
- <tr><td><?=$pos?></td><td><?=$name?></td><td><?=$level?></td></tr>
- <?
- $i++;
- }
- ?>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement