so far i got this code
Code: Select all
<?php
$db = mysql_connect("localhost", "", "");
mysql_select_db("extreme_statsig",$db);
$result = mysql_query("SELECT * FROM statsig",$db);
while ($row = mysql_fetch_assoc($result))
{
extract($row);
header ("Content-type: image/png");
$img_handle = ImageCreate (450, 120) or die ("Cannot Create image");
$back_color = ImageColorAllocate ($img_handle, 0x00, 0x00, 0x00);
$txt_color = ImageColorAllocate ($img_handle, 0xFF, 0xFF, 0xFF);
ImageString ($img_handle, 31, 5, 5, "Player: $player Exp Points: $experience_points", $txt_color);
ImagePng ($img_handle);
}
?>Right now i have two questions reguarding this
My sig background is black...how can i make it an image (bg.png or gif) rather then a color?
Second, on the sig is prints the information like this
i want Player: Sidewinder and Exp Points to be on two different lines like thisPlayer: Sidewinder Exp Points: 1000
Player: Sidewinder
Exp Points: 1000