daily pastebin goal
4%
SHARE
TWEET

denora

a guest Jan 20th, 2017 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.    ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top