Du må undskylde... Jeg sover sgu, her er den rigtige fil:
(Jeg prøver lige at flette dit kode fra den forgående ind, og ser om det ikke virker)
<?php
$album = $_POST['album'];
$text = $_POST['text'];
$title = $_POST['title'];
$dbhost = 'db.hejbll-friborg.dk';
$dbuser = '???????????';
$dbpass = '???????';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql');
$dbname = '???????';
mysql_select_db($dbname);
mysql_query("SET NAMES 'utf8';");
$numId = (int)$album;
$uploaddir = '/usr/home/web/web279211/Admin/image/big/'.$album.'/';
$uploadfile = $uploaddir.basename( $_FILES['userfile']['name']);
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
mysql_query("INSERT INTO Picturs (AlbumId,Text,Title) VALUES('$numId','$text','$title') ") or die(mysql_error());
$dui = mysql_query("SELECT MAX(Id) AS Id FROM Picturs");
$dau = mysql_fetch_assoc($dui);
rename($uploadfile, '/usr/home/web/web279211/Admin/image/big/'.$album.'/'.$dau['Id'].'.jpg');
$numPicId = (int)$dau['Id'];
$picFile = $album.'/'.$dau['Id'].'.jpg';
$onlyFile = $dau['Id'].'.jpg';
mysql_query("UPDATE Picturs SET Path='$picFile' WHERE Id='$numPicId'") or die(mysql_error());
$thump = '/usr/home/web/web279211/Admin/image/thumbs/'.$album.'/';
header("Location:
http://www.hejbøll-friborg.dk/Admin/createThumbs.php?filepath={$uploaddir}&file={$onlyFile}&path={$thump}");
die();
} else {
$message = "Muligvis fil upload angreb eller ingen fil er specificeret!\n";
}
?>
<!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" lang="da">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="da">
<meta name="description" content="Christina Hejbøll Sørensen, Leon Friborg Jeppesen, Gry Hejbøll Friborg Jeppesen og Balder's hjemmeside. Her får du billeder og information om vores lille familie. Vi bor i Kibæk.">
<meta name="keywords" content="Christina, Hejbøll, Sørensen, Leon, Friborg, Jeppesen, Gry, Balder, Kibæk”>"
<meta name="author" content="Hejbøll-Friborg" />
<link rel="stylesheet" href="../stylesheets/screen.css" type="text/css" media="screen, projection" title="Hejbøll-Friborg (screen)" />
<title>Hejbøll-Friborg</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
</head>
<body>
<div class="page">
<h3 class="header">
<a href="./index.php" title="Hjem">
Hejbøll-Friborg
<span>
</span>
</a>
</h3>
<ul class="topmenu">
<li>
<a href="Admin.php" class="currentpage">Administration</a>
</li>
<li>
<a href="../contact.php">Kontakt</a>
</li>
<li>
<a href="../GuestBook.php">Gæstebog</a>
</li>
<li>
<a href="../wishList.php">Ønskeseddel</a>
</li>
<li>
<a href="../gallery.php">Galleri</a>
</li>
<li>
<a href="../index.php">Forside</a>
</li>
</ul>
<div class="main">
<div class="greybox2">
<h1>Indsætter billede</h1>
<p>
<br/>
<pre>
<?php echo $message; ?>
</pre>
<br/>
<table class="EditButton">
<tr>
<td align="right">
<input type="submit" value="Tilbage" name="back" onClick="java script:history.back();">
</td>
</tr>
</table>
</p>
</div>
</div>
<!-- /main-->
<div class="footer1">
© 2008 Christina Hejbøll Sørensen & Leon Friborg Jeppesen
</div>
</div>
<!-- /page-->
<center>
<div class="footer2">
</div>
</body>
</html>