Habe fehler und komm nicht drauf wo!

Dönerman

Gesperrt
ich habe einen fehler! komm aber nicht drauf!!
PHP:
   <?php 
   include ("dbconnect.php");
   
   $e = $_POST[1];
   $r = $_POST[2];
   $t = $_POST[3];
   
   if ($e == "1"){
   echo "hallo";
   }else{
   $eintrag = "INSERT INTO catchword (name) VALUES ('$e')";
   $eintragen = mysql_query($eintrag);  
   }
   
   if ($r!= "1"){
   $eintra = "INSERT INTO catchword (name) VALUES ('$r')";
   $eintrage = mysql_query($eintra);  
   }
   
   if ($t != "1"){
   $eintr = "INSERT INTO catchword (name) VALUES ('$t')";
   $eintrag = mysql_query($eintr);  
   }
   
   
   
   
   $imgname = $_FILES['userfile']['name'];
   $path = 'upload';
   
   	
   if (is_uploaded_file($_FILES['userfile']['tmp_name'])) { 
   	
   	copy($_FILES['userfile']['tmp_name'], "./".$path."/$imgname"); 
   	header ("location: upload_3_admin1.php");
   } else { 
   	if (!$imgname) {
   		header ("location: upload_4_admin1.php");
   		}
   }
   
     $folder_scr  = "upload";
     $des_src	 = "thumbs";
     $thumbx	  = "100";
     $thumby	  = "100";
   
     function mkthumb($img_src,	
   				   $img_width,   
   				   $img_height, 
   				   $folder_scr,  
 				 $des_src)	 
     {
   	$image = imagecreatefromjpeg($folder_scr."/".$img_src);
   	list($src_width, $src_height) = getimagesize($folder_scr."/".$img_src);
   	if($src_width >= $src_height)
   	{
   	  $new_image_width = $img_width;
   	  $new_image_height = $src_height * $img_width / $src_width;
   	}
   	if($src_width < $src_height)
   	{
   	  $new_image_height = $img_width;
   	  $new_image_width = $src_width * $img_height / $src_height;
   	}
   	$new_image = imagecreatetruecolor($new_image_width, $new_image_height);
 	imagecopyresampled($new_image, $image, 0, 0, 0, 0, $new_image_width,$new_image_height, $src_width, $src_height);
   	imagejpeg($new_image, $des_src."/".$img_src, 100);
     }
   
     $filename = $_SERVER['PHP_SELF'];
   
     $verz=opendir($folder_scr);
   
     $linkl = array ();
   
     while ($file = readdir ($verz))
     {
   
   	if($file != "." && $file != ".." && $file != $filename)
   	{
   	  array_push ($linkl, "$file"); 
   	}
     }
   
     $anzahl = count($linkl);
   
     sort ($linkl);
   
     foreach($linkl as $key => $value)
     {
   
   	if(!file_exists($des_src."/".$value))
   	{
   
   	  mkthumb($value, $thumbx, $thumby, $folder_scr, $des_src);
   	}
     }
   
     closedir($verz);
   
   
   
   $datum = date("j.n.Y g:i:s");
   $ein = "INSERT INTO file (name, time) VALUES ('$imgname', '$datum')";
   $eint = mysql_query($ein);  
   
107: abfrage = "select * from file WHERE time = '$datum'";
   $ergebnis = mysql_query($abfrage);
   $menge = mysql_num_rows($ergebnis);  
   while($row = mysql_fetch_row($ergebnis))
   	{
   	$ki = $row[0];
   	}
    
     
   $aendern = "UPDATE catchword Set file_id = '$ki' WHERE file_id = '0'";
   $update = mysql_query($aendern); 
    
   
 exec('xcopy C:\apachefriends\xampp\htdocs\test\php\echt\admin1\upload C:\apachefriends\xampp\htdocs\test\php\echt\admin1\picture /e/i');
   header ("location: upload/index.php?id=$imgname");
   ?>

und die meldung bekomme ich immer!

Parse error: syntax error, unexpected '=' in C:\apachefriends\xampp\htdocs\test\php\echt\admin1\upload_2_admin1.php on line 107
 
Zuletzt bearbeitet:
Zurück