billede problem
hvad er fejlen?- den vil ikke vise billedet?
<?
header ("Content-type: image/png");
include("sql.php");
$spil=$_GET[id];
$hej=mysql_query("SELECT * FROM test_upload WHERE md5='$_GET[md5]'");
$vis=mysql_fetch_array($hej);
$tekst = nl2br($tekst);
$md5 = "$md5";
$filnavn = "$filnavn";
//Config
$font = 'tahoma.ttf'; //Font fil. (skal uploades)
$size = 10; //Font size
$mappe = mysql_real_escape_string($_GET[M]);
$pic = mysql_real_escape_string($_GET[P]);
$tid = date('d/m/Y - H:i:s');
$brugernavn = $_SESSION['brugernavn'];
$ip = $_SERVER['REMOTE_ADDR'];
$browse = $_SERVER['HTTP_USER_AGENT'];
$im = imagecreatefromjpeg("2/$vis[filnavn]");
$color = imagecolorallocate($im, 255, 255, 255);
$px=5;
$py=75;
$pr=10;
$pq= 268;
$ps= 292;
$pz= 280;
imagettftext($im, $size, 0, $px, $py, $color, $font, $string);
imagettftext($im, $size, 0, $px, $py+12, $color, $font, $string2);
imagettftext($im, $size, 0, $pr, $pq, $color, $font, "Copyright");
imagettftext($im, $size, 0, $pr, $pz, $color, $font, "Dato: $tid");
imagettftext($im, $size, 0, $pr, $ps, $color, $font, "IP: $ip");
imagepng($im);
imagedestroy($im);
?>
