Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. <?php
  2. $DB_HOST = 'localhost';
  3. $DB_USER = '***';
  4. $DB_PASS = '****';
  5. $DB_NAME = '****';
  6. $mysqli = new mysqli($DB_HOST, $DB_USER, $DB_PASS, $DB_NAME);
  7.  
  8.  
  9. $sql = "SELECT * FROM Chat.chan WHERE channel='#".$_GET['channel']."'";
  10. $result = mysql_query( $sql );
  11. while( $row = mysql_fetch_assoc( $result ) ) {
  12.  
  13. $chanid = $row['chanid'];
  14. $channel = $row['channel'];
  15. $currentusers = $row['currentusers'];
  16. $topic = $row['topic'];
  17. $topicauthor = $row['topicauthor'];
  18. $topictime = $row['topictime'];
  19. $chan_replace = str_replace("#", "", $row['channel']);
  20.  
  21.   ?>
  22. <?php echo $currentusers; ?>
  23.    <?PHP
  24.    }
  25.    ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement