Umlaute Zeichencode
authorHolger Lindemann <hli@lx-system.de>
Fri, 19 Jan 2007 09:44:40 +0000 (09:44 +0000)
committerHolger Lindemann <hli@lx-system.de>
Fri, 19 Jan 2007 09:44:40 +0000 (09:44 +0000)
lxo-import/addressB.php

index 23fa4f6..dcb5adb 100644 (file)
@@ -44,7 +44,6 @@ clearstatcache ();
 $test=$_POST["test"];
 if (!empty($_FILES["Datei"]["name"])) {
        $file=$_POST["ziel"];
-       echo $_FILES["Datei"]["tmp_name"];
        if (!move_uploaded_file($_FILES["Datei"]["tmp_name"],$file.".csv")) {
                $file=false;
                echo "Upload von ".$_FILES["Datei"]["name"]." fehlerhaft. (".$_FILES["Datei"]["error"].")<br>";
@@ -118,6 +117,8 @@ if ($ok) while (!feof($f)){
                } else if ($in_fld[$i]=="taxincluded"){
                        $data=strtolower(substr($data,0,1));
                        if ($data!="f" && $data!="t") $data="f";
+               } else if ($in_fld[$i]=="ustid"){
+                       $data=strtr(" ","",$data);
                } /*else if ($in_fld[$i]=="matchcode") {
                   $matchcode=$data;
                   $i++;
@@ -164,7 +165,7 @@ if ($ok) while (!feof($f)){
                        $sql.=$keys."taxzone_id,import)";
                        $sql.=$vals."0,$nun)";
                        $rc=$db->query($sql);
-                       if (!$rc) echo "Fehler: ".$vals."<br>";
+                       if (!$rc) echo "Fehler: ".$sql."<br>";
                }
                $j++;
        } else {