Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("config.php");
- $sql=$dbh->prepare("SELECT name FROM chatters");
- $sql->execute();
- $aktip = "";
- while($r=$sql->fetch()){
- if(isset($_SESSION['user'])){
- if($_SESSION['user'] == $r['name']){
- $aktip = "<a href='logout.php' class='keluar'>Keluar</a>";
- }
- }
- echo "<div class='user'>{$r['name']} $aktip</div>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment