Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="table">
- <thead>
- <tr>
- <th>Name</th>
- <th>Rank</th>
- <th>Letzter Login</th>
- </tr>
- </thead>
- <?
- $fraktion = $_SESSION['fraktion'];
- $sql = "SELECT * FROM `accounts` WHERE `fraktion`='$fraktion'" ;
- $result = mysql_query($sql) ;
- while( $row = mysql_fetch_assoc($result) )
- {
- if($_SESSION['loggedin'] == true)
- {
- ?><tr><td><? echo $row["name"]; ?></td><td><? echo $row["rank"]; ?></td><td><span class="label label-success"> Online</span></td><?
- }
- else if($_SESSION['loggedin'] == false)
- {
- ?><tr><td><? echo $row["name"]; ?></td><td><? echo $row["rank"]; ?></td><td><? echo $row["login"]; ?></td><?
- }
- } ?>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement