Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #config.php
- $dbhost="localhost";
- $dbuser="***";
- $dbpass="****";
- //connection to the database
- $dbhandle = mysql_connect($dbhost, $dbuser, $dbpass)
- or die("Unable to connect to MySQL");
- $sql = "SELECT * FROM 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