Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbhost = 'localhost';
- $dbuser = 'root';
- $dbpass = 'jh3jk525252fw';
- $dbname = 'phoenix';
- $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
- mysql_select_db($dbname);
- $query = mysql_query('SELECT * FROM users WHERE online='1');
- $result = mysql_num_rows($query) or die('Habplus = Offline ' . mysql_error());
- $numberofresults = mysql_result($result, 0);
- $row = mysql_fetch_array( $result );
- $text = "Users Online";
- $image = imagecreatefrompng('images/04.png');
- $black = imagecolorallocate($image, 0, 0, 0);
- imagefttext($image, 8, 0, 180, 71, $black, './VolteBol.ttf', $numberofresults);
- imagefttext($image, 8, 0, 213, 71, $black, './VolteBol.ttf', $text);
- header('Content-type: image/png');
- imagepng($image);
- imagedestroy($image);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement