<?php
$con = mysql_connect("localhost", "root", "dsdsata");
$db = mysql_select_db("rpg", $con);
$a = isset($_GET['user']) ? mysql_real_escape_string($_GET['user']) : '';
$af = mysql_query("SELECT vecums FROM lietotaaji WHERE vaards='$a'");
list($vecums) = mysql_fetch_row($af);
$vecums = $af[0];
header("Content-type: image/png");
$im = imagecreate(315, 65);
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 0, 0, 0);
imagestring($im, 3, 0, 0, $vecums, $textcolor);
imagepng($im);
?>
uzliku šadi, tapat balta lapa