Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $DB_HOST = 'localhost';
- $DB_USER = '***';
- $DB_PASS = '****';
- $DB_NAME = '****';
- $mysqli = new mysqli($DB_HOST, $DB_USER, $DB_PASS, $DB_NAME);
- $sql = "SELECT * FROM Chat.chan WHERE channel='#".$_GET['channel']."'";
- $result = mysql_query( $sql );
- while( $row = mysql_fetch_assoc( $result ) ) {
- $chanid = $row['chanid'];
- $channel = $row['channel'];
- $currentusers = $row['currentusers'];
- $topic = $row['topic'];
- $topicauthor = $row['topicauthor'];
- $topictime = $row['topictime'];
- $chan_replace = str_replace("#", "", $row['channel']);
- ?>
- <?php echo $currentusers; ?>
- <?PHP
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement