hm also ich bin net schlau daraus gworden sorry. ich schreib mal den quelltext hier rein. vielleicht könnt ihr mir anhand davon helfen.wär super.
...
if (($submit) AND ($name!="") AND ($eintrag!="")){
$date = date("d/m/y");
$result=MYSQL_QUERY("INSERT INTO sp_gaestebuch (name,email,homepage,eintrag,date,pic)".
"VALUES ('$name', '$email', '$homepage', '$eintrag', '$date', '$pic_name')");
};
$result = mysql_query("select * from sp_gaestebuch order by id desc");
if(!$rowstart) $rowstart=0;
$result = mysql_query("select * from sp_gaestebuch order by id desc limit $rowstart,10");
$result2 = mysql_query("select * from sp_gaestebuch");
?>
<body align="center">
<table bgcolor="#FFFFFF" width="761" border="0" cellspacing="5" cellpadding="5">
<tr>
<td width="250" valign="top">
<?
echo " $id";
if ($rowstart>$numrows)
{?>
<A HREF="<? $php_self ?>?rowstart=<? echo $rowstart-10;?>"><font face="verdana" size="1"><span style="text-decoration:underline;color:#000000">< Neue Einträge</span></A><?}?>|</font>
<?
$numrows=mysql_num_rows($result2);
if($rowstart+10<$numrows)
{?>
<A HREF="<? $php_self?>?rowstart=<?echo $rowstart+10 ;?>"><font face="verdana" size="1"><span style="text-decoration:underline;color:#000000">Ältere Einträge></span></font></A>
<? } ?>
<form method="post" action="<? echo $php_self ?>" ENCTYPE="multipart/form-data">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><font face="verdana" size="1">Name:</font></td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td><font face="verdana" size="1">Email:</font></td>
<td><input type="text" name="email"></td>
</tr>
<tr>
<td><font face="verdana" size="1">Bild:</font></td>
<td><input type="file" size="10" name="pic"><input type="hidden" name="MAX_FILE_SIZE" value="500000"></td>
</tr>
<tr>
<td><font face="verdana" size="1">HP:</font></td>
<td><input type="text" name="homepage"></td>
</tr>
<tr>
</tr>
<tr>
<td><font face="verdana" size="1">Eintrag:</font></td>
<td><textarea name="eintrag"></textarea></td>
</tr>
<tr>
<td colspan="2"><font face="verdana" size="1"><a href="JavaScript:smilies()"><span style="text-decoration:underline;color:#000000">Smilies</span></a></font><br><br><INPUT TYPE="submit" name="submit" value="OK"></td>
</tr>
</table>
</form>
</td>
<td>
<?
while($r=mysql_fetch_array($result))
{
$name=$r["name"];
$email=$r["email"];
$homepage=$r["homepage"];
$eintrag=$r["eintrag"];
$pic=$r["pic"];
$id=$r["id"];
?>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td></td>
<td width="600">
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#000000" width="150"><font face="verdana" size="1" color="#FFFFFF"><? echo" $id. <br>$date <br> $name"; ?></font></td>
<td rowspan="3"><font face="verdana" size="1"><? echo Filter_UBBTags ($eintrag, $UBBTags); ?></font></td>
</tr>
<tr>
<td bgcolor="#000000"><? echo" <img src=\"pics/up/$pic\">"; ?></td>
</tr>
<tr>
<td bgcolor="#000000"><? if ($email != "") {
echo '<a href="mailto:'.$email.'"><img src="pics/email.gif" border="0"></a>'; }; ?> <? if ($homepage != "") {
echo '<a href="http://'.$homepage.'" target="_blank"><img src="pics/ie.gif" border="0"></a>'; }; ?></td>
</tr>
</table><br><br>
</td>
</tr>
</table>
<? }
copy($pic,"/der pfad für die bilder/pics/up/$pic_name");
unlink($pic);
?>
danke schonmal im vorraus.