Ich habe folgenden Code:
Code:
<?php include("inc/config.php"); $sql="SELECT * FROM $impressumtbl"; $result=mysql_query($sql) or die(mysql_error()); while($row=mysql_fetch_assoc($result)) { $name=$row['Name']; $Wohnort=$row['Wohnort']; $PLZ=$row['PLZ']; $Straße=$row['Straße']; $Email=$row['Email']; } $width = 300; $height = 80; $pic = ImageCreate($width, $height); $weiss = ImageColorAllocate($pic,0 ,0 ,0 ); $schwarz = ImageColorAllocate ($pic, 255, 255, 255); ImageFilledRectangle($pic, 0, 0, $width, $height, $weiss); ImageString($pic, 3, 70, 1, "Impressum", $schwarz); ImageString($pic, 3, 1, 15, "Name: ".$name, $schwarz); ImageString($pic, 3, 1, 30, "PLZ,Wohnort: ", $schwarz); ImageString($pic, 3, 1, 45, "Straße: ".$Straße, $schwarz); Imagestring($pic, 3, 1, 60, "Email: ".$Email, $schwarz); ImagePNG($pic); ImageDestroy($pic) ?>
Ich will das jetzt aber in eine Seite includen., aber davor sind schon Ausgaben.
Wie kann ich das dann machen, dass keine Fehler kommen?
Oder geht das überhaupt?
Einen Kommentar schreiben: