Hello all
I have made an upload page in dreamweaver, that for some reason doesn’t work.
Is there maybe someone that can help with the script, or maybe has one that works.
Thanks very much.
Haggis
[code]<?php require_once(’…/…/Connections/.php’);
mysql_select_db($database_, $******);
?>
if (isset($_FILES[‘filnavn’])) {
print “Fil, der er blevet overf?rt: {$_FILES[‘filnavn’][‘name’]}
n”;
$query = "INSERT INTO billeder SET billednavn='".$_FILES['filnavn']['name']."'";
$Result1 = mysql_query($query, $********) or die(mysql_error());
}
{
$tempfile = $_FILES[‘filnavn’][‘tmp_name’];
$destination = "…/billeder/{$_FILES[‘filnavn’][‘name’]} ";
copy($tempfile, $destination);
}
?>
Fil, der skal overføres:
[/code]