hmm... ser ud til at det virker, men nu får jeg parse error på det afsluttende </html>.. er møg forvirret, smider lige hele koden op:
<?php require_once('../Connections/fminfo.php');
mysql_select_db($database_fminfo, $fminfo);
?>
<?php
mysql_select_db($database_fminfo, $fminfo);
$query_rsGenre = "SELECT * FROM filmgenre";
$rsGenre = mysql_query($query_rsGenre, $fminfo) or die(mysql_error());
$row_rsGenre = mysql_fetch_assoc($rsGenre);
$totalRows_rsGenre = mysql_num_rows($rsGenre);
?>
<!-- TEST_INIT //-->
<!-- TEST_RENDER //-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Film & Musik INFO We make you sure</title>
<script src="../frontend.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../frontend.css">
<base target="_self">
</head>
<body bgcolor="#BABBC" background="../img/firkant.gif" text="#000000" link="#AE2D2D" vlink="#AE2D2D" alink="#AE2D2D" topmargin="20" leftmargin="0" marginwidth="0" marginheight="0">
<?
if (is_uploaded_file($upfile))
{
$filename = "..\img\film\$upfile_name" ; // f.eks D:\www\billeder\\$upfile_name"
if (file_exists($filename))
{
echo "Filen findes allerede, omdøb filnavnet." ;
}
else
{
$query = "insert into film (billede) VALUES ('".$_files['billede']['name']."')";
$result1 = mysql_query($query, $fminfo) or die(mysql_error());
}
{
$tempfile = $_files['billede']['tmp_name'];
$destination = "../img/film/{$_files['billede']['name']} ";
copy($tempfile, $destination);
}
}
else
{
?>
<div align="center">
<center>
<table border="0" cellspacing="0" cellpadding="0" width="771" background="../img/CMLfinal2.png" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td colspan="5" style="height:120px;" background="../img/CMLfinal.png" width="771">
<table border="0" width="528">
</table></td>
</tr>
<tr>
<td colspan="5" style="height:1px;" bgcolor="#AE2D2D" width="771">
<img src="../img/leer.gif" alt="" width="1" height="1" /></td>
</tr>
<tr>
<td valign="top" width="149" bgcolor="#ffffff">
<?php include ("../menu.inc"); ?>
<link rel="stylesheet" type="text/css" href="../frontend.css">
</center>
</div></td>
<td valign="top" width="1" bgcolor="#AE2D2D">
<img src="../img/leer.gif" alt="" width="1" height="1" /></td>
<td valign="top" width="470" bgcolor="#ffffff"><div style="border-left: 1px dotted #ffffff;margin-left:-6px;">
<div style="padding:10 px;">
<p><table width="100%" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td>Tilføj film
<form action="" method="post" enctype="multipart/form-data" name="film" id="film">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="18%">Titel:</td>
<td width="82%"><input name="titel" type="text" id="titel" size="60"></td>
</tr>
<tr>
<td>Billeder:</td>
<td><input name="billed" type="file" id="billed" size="60"></td>
</tr>
<tr>
<td>Instruktør:</td>
<td><input name="instructor" type="text" id="instructor" size="60"></td>
</tr>
<tr>
<td>Skuespillere:</td>
<td> <input name="skuespillere" type="text" id="skuespillere" size="60"></td></tr>
<tr>
<td>Handling:</td>
<td><textarea name="handling" cols="45" rows="6" id="handling"></textarea></td>
</tr>
<tr>
<td>Kommentar:</td>
<td><textarea name="kommentar" cols="45" rows="6" id="kommentar"></textarea></td>
</tr>
<tr>
<td>Bedømmelse:</td>
<td> </td>
</tr>
<tr>
<td>Genre:</td>
<td><select name="genre" id="genre">
<?php
do {
?>
<option value="<?php echo $row_rsGenre['Genre']?>"<?php if (!(strcmp($row_rsGenre['Genre'], $row_rsGenre['Genre']))) {echo "SELECTED";} ?>><?php echo $row_rsGenre['Genre']?></option>
<?php
} while ($row_rsGenre = mysql_fetch_assoc($rsGenre));
$rows = mysql_num_rows($rsGenre);
if($rows > 0) {
mysql_data_seek($rsGenre, 0);
$row_rsGenre = mysql_fetch_assoc($rsGenre);
}
?>
</select></td>
</tr>
<tr>
<td>Sprog</td>
<td><input name="sprog" type="text" id="sprog" size="60"></td>
</tr>
<tr>
<td> </td>
<td><input name="gem" type="submit" id="gem" value="Gem">
<input name="nulstil" type="reset" id="nulstil" value="Nulstil"></td>
</tr>
</table>
</form></td>
</tr>
</table><br>
<img src="../img/leer.gif" width="1" height="2" alt=""><br/>
</p>
<p/><p align="center">
</div>
</div></td>
<td valign="top" width="1" bgcolor="#AE2D2D">
<img src="../img/leer.gif" alt="" width="1" height="1" /></td>
<td valign="top" width="150" bgcolor="#ffffff"><div style="padding:4px;text-align:center;font-size:9px;">
<? include("../menu2.inc"); ?>
</td>
</tr>
</table>
</center>
</div></td>
</tr>
<tr>
<td colspan="5" style="height:1px;" bgcolor="#AE2D2D" width="771">
<img src="../img/leer.gif" alt="" width="1" height="1" /></td>
</tr>
<tr>
<td colspan="5" style="height:20px;" bgcolor="#AE2D2D" width="771"><div align="center">
<center>
<table border="0" cellspacing="1" width="770">
<tr>
<td> </td>
</center>
<td width="400">
<p align="right"><font color="#FFFFFF">Copyright<span lang="da"> </span>
<span style="FONT: 9px Verdana">©</span><span lang="da">
<a href="
http://www.fminfo.dk" style="text-decoration: none">
<font color="#FFFFFF">fminfo.dk</font></a></span> 2005<span lang="da">
</span></font></td>
</tr>
</table>
</div></td>
</tr>
</table>
</center>
</div>
</body>
</html>