Advertisement
Guest User

denora

a guest
Jan 20th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 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_channels = "SELECT * FROM chan ORDER BY currentusers DESC";
  10.    $result_channels = mysql_query( $sql_channels );
  11.    while( $row_channels = @mysql_fetch_assoc( $result_channels ) ) {
  12.  
  13.    $channel_currentusers = $row_channels['currentusers'];
  14.    $channel_maxusers = $row_channels['maxusers'];
  15.    $channel_chan = str_replace("#", "", $row_channels['channel']);
  16.  
  17.   ?>
  18. <?PHP echo $channel_currentusers; ?>
  19.  
  20.    <?PHP
  21.    }
  22.    ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement