[HELP]Habbo Dynamic PHP Banner Image error

Hayate-Kun

New Member
Jun 11, 2011
24
0
I setup all correctly .
But when I go to (url)/online.php , The image doesn't appeared .
Using RevCMS
Help me please :(
 

Hayate-Kun

New Member
Jun 11, 2011
24
0
Here :
PHP:
<?php
 
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '[mypass]';
$dbname = '[mydb]';
 
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die                      ('Error connecting to mysql');
mysql_select_db($dbname);
 
$result = mysql_query("SELECT * FROM server_status");
$usersreg = mysql_query("SELECT * FROM users");
 
 
$row = mysql_fetch_array( $result );
$image = imagecreatefrompng('banner.png');
$font_color = imagecolorallocate($image, 99, 0, 0);
imagefttext($image, 8, 0, 48, 30, $font_color, './tahoma.ttf', $row['users_online']);
imagefttext($image, 8, 0, 308, 21, $font_color, './tahoma.ttf', $online);
imagefttext($image, 20, 0, 394, 77, $font_color, './tahoma.ttf', $num_rows);
header('Content-type: image/png');
imagepng($image);
imagedestroy($image);
?>
 

Users who are viewing this thread

Top