08.07.2011, 23:36
First of all, DON'T bump. Second, you should use ******. (Yes, it has hundreds of tutorials for what you are looking for)
Well, here, you can use my code, if you are using MySQL, then you are a lucker:
You will have to play with "imagestring" to get the correct position. ****** it if you need any more help.
Your URL would be something like: [IMG/]http://******.com/image.php?changeme=Luis[IMG]
Here's the example image using that above code:
Good luck.
Well, here, you can use my code, if you are using MySQL, then you are a lucker:
PHP код:
$imagepath = "css/images/statspage.jpg";
$image = imagecreatefromjpeg($imagepath);
$imgheight = imagesy($image);
$color = imagecolorallocate($image, 221, 160, 221);
// setlocale(LC_MONETARY, 'en_US'); // If you want to format cash
// Connect to MySQL & DB
$user = mysql_real_escape_string($_GET['changeme']);
$result = mysql_query("SELECT * FROM changeme WHERE changeme = '$changeme'", $connect);
// Y < Lower Higer >
// X ^ Lower Higher V
// Got our row, lets get the values
while($myrow = mysql_fetch_assoc($result))
{
imagestring($image, 5, 126, $imgheight-93, $myrow["user"], $color); // Username
imagestring($image, 3, 90, $imgheight-31, $myrow["kills"], $color); // Kills
imagestring($image, 3, 220, $imgheight-31, $myrow["deaths"], $color); // Deaths
// imagestring($image, 3, 332, $imgheight-31, money_format('%i', $myrow[5]), $color); // Money
imagestring($image, 3, 332, $imgheight-31, $myrow["money"], $color); // Money
imagestring($image, 3, 459, $imgheight-31, $myrow["Level"], $color); // Admin Level
}
header('Content-Type: image/jpeg');
// imagejpeg(Image, FileName, Quality);
imagejpeg($image, NULL, 100);
Your URL would be something like: [IMG/]http://******.com/image.php?changeme=Luis[IMG]
Here's the example image using that above code:
Good luck.