Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbhost = "localhost:1994";
- $dbuser = "root";
- $dbpass = "Cehfyd%^$123";
- $dbname = "freshdb";
- $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Cannot connect..');
- mysql_select_db($dbname);
- $getInfo = mysql_query("SELECT * FROM server_status");
- $info = mysql_fetch_array($getInfo);
- $row = mysql_fetch_array( $result );
- $text = " Habbos Online";
- $image = imagecreatefrompng('02.png');
- $black = imagecolorallocate($image, 0, 0, 0);
- imagefttext($image, 10, 0, 186, 90, $black, './verdanab.ttf', $row['users_online']+100);
- imagefttext($image, 10, 0, 205, 90, $black, './verdanab.ttf', $text); // Remove the // ahead of this line to use it
- header('Content-type: image/png');
- imagepng($image);
- imagedestroy($image);
- ?>
Add Comment
Please, Sign In to add comment