Ville ikke tildele at upload det til database eller komme videre
HejDet er sådan at jeg få en fejlmeddelse når jeg prøve at køre det her kode færdig eller hvordan man skal sige det .. :)
<?php
include("include/database/database.php");
//Infomation
$brugernavn = $_POST["brugernavn"];
$password = $_POST["password"];
$gentag = $_POST["gentag"];
$facebook = $_POST["facebook"];
$soundcloud = $_POST["soundcloud"];
$land = $_POST["land"];
$profiltekst = $_POST["profiltekst"];
$djnavn = $_POST["djnavn"];
$email = $_POST["email"];
$site = $_POST["site"];
$fk_id = $_POST["kategori"];
$errorCount = 0;
include("include/class.upload.php");
$handle = new Upload($_FILES['file']);
if($handle->uploaded){
//lidt mere store billeder
$handle->image_resize = true;
$handle->image_ratio_y = true;
$handle->image_x = 220;
$handle->Process("picthumb/storeimg");
//til profil billede lign..
$handle->image_resize = true;
$handle->image_ratio_crop = true;
$handle->image_y = 75;
$handle->image_x = 75;
$handle->Process("picthumb");
$billedefilnavn = $handle->file_dst_name;
echo "Dit billede blev upload";
}else {
echo "Fejl; Du skal uploade en fil";
}
if($brugernavn == "")
{
echo "Du skal indtaste et brugernavn.<br>";
$errorCount++;
}
if($password == "")
{
echo "Du skal indtaste et password.<br>";
$errorCount++;
}
if($gentag == "" || $gentag != $password)
{
echo "De to passwordfelter skal have ens indhold.<br>";
$errorCount++;
}
include("include/database/database.php");
$password = sha1($password);
$insert = mysql_query("INSERT INTO brugere (brugernavn,password,facebook,soundcloud,land,profiltekst,djnavn,email,site,fk_musik_info,profilbillede) VALUES ('$brugernavn','$password','$facebook','$soundcloud','$land','$profiltekst','$djnavn','$email','$site','$fk_id','$billedefilnavn')");
if(!$insert) {
echo "<a href='index.php'>forside</a>";
}
else {
echo "<a href='index.php'>forside</a>";
}
?>
sådan her så min database ud før i tiden :)
http://d.localhostr.com/file/aKVoqOH/capture.png
håber du kan hjælp mig frem til en rigtigt godt svar :)