num; $date = date("F jS, Y",$data->date); // increment the counter $return = query($link, $update); // close up the database connection close($link); } $string = "You are visitor number $num since $date"; $font = 3; // calculate image size $width = imagefontwidth($font) * strlen($string); $height = imagefontheight($font); $img = imagecreate($width,$height); $black = imagecolorallocate($img, 0x00,0x00,0x00); $white = imagecolorallocate($img, 0xFF,0xFF,0xFF); imagecolortransparent($img,$white); imagefill($img,0,0,$white); imagestring($img,$font,0,0,$string,$black); // output the image header("Content-type: image/gif"); imagegif($img); ?>