Jetzt der Code für die Nachrichten nachrichtneu.php und skript1.php
<?PHP
$sql1 = "SELECT `nr` FROM `haber` ORDER BY `nr` DESC LIMIT 0,1";
$result1 = mysql_query($sql1);
while($row1 = mysql_fetch_object($result1))
{
$number=$row1->nr;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?PHP include "../tr/siteheader.php"; ?>
</head>
<body>
<form action="skript1.php" method="post" enctype="multipart/form-data">
<div id="holepage">
<div id="header">
<?PHP include "../tr/header.php"; ?>
</div>
<div id="nav">
<?PHP include "../tr/links.php"; ?>
</div>
<div id="content">
<div class="style_1">Neue Nachricht</div>
<div class="style_2">
<table align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="160px" height="24px" align="left" valign="middle">Nachrichten - Nummer:</td>
<td height="24px" align="left" valign="middle"><input type="text" name="nachrichtennummer" class="style_3" readonly="readonly" value="<?PHP print($number+1)?>" /></td>
</tr>
<tr>
<td width="160px" height="24px" align="left" valign="middle">Datum:</td>
<td height="24px" align="left" valign="middle"><input type="text" name="datum" class="style_4" /></td>
</tr>
<tr>
<td width="160px" height="24px" align="left" valign="middle">Überschrift:</td>
<td height="24px" align="left" valign="middle"><input type="text" name="ueberschrift" class="style_4" /></td>
</tr>
<tr>
<td width="160px" height="24px" align="left" valign="middle">Bild 1:</td>
<td height="24px" align="left" valign="middle"><input type="file" name="bild1" id="bild1" class="style_5" /></td>
</tr>
<tr>
<td width="160px" height="24px" align="left" valign="top">Nachricht:</td>
<td height="24px" align="left" valign="middle"><textarea name="nachricht" class="style_6" cols="" rows=""></textarea></td>
</tr>
<tr>
<td width="160px" height="24px" align="left" valign="middle">Archiv - Nummer:</td>
<td height="24px" align="left" valign="middle"><input type="text" name="archivnummer" class="style_3" readonly="readonly" value="<?PHP print($number+1+1000)?>" /></td>
</tr>
<tr>
<td width="160px" height="24px" align="left" valign="middle">Bild 2:</td>
<td height="24px" align="left" valign="middle"><input type="file" name="bild2" class="style_5" /></td>
</tr>
<tr>
<td width="160px" height="24px" align="left" valign="middle">Bild 3:</td>
<td height="24px" align="left" valign="middle"><input type="file" name="bild3" class="style_5" /></td>
</tr>
<tr>
<td width="160px" height="24px" align="left" valign="middle">Bild 4:</td>
<td height="24px" align="left" valign="middle"><input type="file" name="bild4" class="style_5" /></td>
</tr>
<tr>
<td width="160px" height="24px" align="left" valign="middle">Bild 5:</td>
<td height="24px" align="left" valign="middle"><input type="file" name="bild5" class="style_5" /></td>
</tr>
<tr>
<td colspan="2" height="24px" align="center" valign="middle"><input type="submit" class="style_7" value="Abschicken"/> <input type="reset" class="style_7" value="Zurücksetzen" /></td>
</tr>
</table>
</div>
</div>
</div>
</form>
</body>
</html>