Nieuw lid |
|
<?php
// create a 100*30 image
$im = imagecreate(480, 100);
// white background and blue text
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 0, 0, 255);
mysql_connect('*','**','***');
mysql_select_db('wildside');
$id = 1;
$q = "SELECT * FROM i_leden WHERE id = '".$id."'";
$sql = mysql_query($q) or die(mysql_error());
while($rij=mysql_fetch_array($sql)) {
$text = $rij['nick'];
$avatar = $rij['avatar'];
// write the string at the top left
imagestring($im, 5, 0, 0, $text, $textcolor);
imagestring($im, 5, 0, 50, $avatar, $textcolor);
// output the image
header("Content-type: image/jpeg");
imagejpeg($im);
}
?>
<?php // create a 100*30 image $im = imagecreate(480, 100); // white background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); $id = 1; $q = "SELECT * FROM i_leden WHERE id = '".$id."'"; $text = $rij['nick']; $avatar = $rij['avatar']; // write the string at the top left imagestring($im, 5, 0, 0, $text, $textcolor); imagestring($im, 5, 0, 50, $avatar, $textcolor); // output the image header("Content-type: image/jpeg"); imagejpeg($im); } ?>
dit script werkt PERFECT, maar ik krijg een gele gloed rond mijn letters
< http://wildside.f2o.org/Imagination/051104/ >
Link hierboven is voorbeeld
|