Jump to content

GD Library


Recommended Posts

Need some help, its giving me:The image "mylink/img.php" can not be shown, because it contains errors.php code:

<?php	mysql_connect('localhost', 'root', '');	mysql_select_db('chat');	$im = imagecreatefrompng('bg2.png');			$q = mysql_query('SELECT * FROM msg ORDER by id DESC LIMIT 0,10');	$x = 6;	$y = 11;	$color = imagecolorallocate($im, 0xFF, 0x00, 0x00);	while($rows = mysql_fetch_array($q)) {		imagestring($im, $x, $y,  $rows['name'].': '.$rows['msg'], $color);		$y = $y + 10;	}		header('Content-type:image/png');	imagepng($im);	?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...