Ok here is my code, this will simply show the number of players in the center of a 280 by 50px box, with a transparent background. My goal is to show these players in the banner listed above:
<?php
include("lib.php");
$player = check_user($secret_key, $db);
$totplayers = $db->execute("select * from players");
$players = $totplayers->recordcount();
$image = imagecreatetruecolor(280, 50);
$red = imagecolorallocate($image, 255, 0, 0);
$black = imagecolorallocate($image, 0, 0, 0);
// Make the background transparent
imagecolortransparent($image, $black);
$text_color = imagecolorallocate($image, 0, 0, 0);
$white = ImageColorAllocate($image,255,255,255);
$blue = imagecolorallocate($image, 0, 0, 255);
$red = imagecolorallocate($image, 0 , 200, 0);
$bg = imagecolorallocate($image, 255, 255, 255);
$textcolor = imagecolorallocate($image, 1, 1, 1);
imagestring($image, 3, 115, 15, "$players", $textcolor);
header('Content-type: image/png');
imagepng($image);
imagedestroy($image);
?>