Hello,
mit de trim hab ich probiert, leider erfolglos:
$katn = trim($feld[0]);
Auszug aus dem Inhalt der Datenbank:
1, '2004-07-19 10:25:12', 'Batterie/Akku \r\n', 30007, 'Varta Mignon NiCd Accu+'
hinter 'Batterie/Akku immer noch tab und \r\n'
was mach ich falsch?
Du beachtest das Satzformat der Quelle nicht.
Es sieht also so aus, als hättest Du da eine CSV-Datei, denn ich sehe Kommata...
Liegt die Datei auf einem Linux-System?
Dann gib mal
hexdump -C <dateiname> ein
Das sieht dann ungefähr so aus:
thomas@testserver:~/public_html/test/debug$ hexdump -C kontrolle.php
00000000 3c 3f 70 68 70 20 20 20 20 23 23 23 20 6b 6f 6e |<?php ### kon|
00000010 74 72 6f 6c 6c 65 2e 70 68 70 20 23 23 23 0a 0a |trolle.php ###..|
00000020 24 73 63 72 69 70 74 20 3d 20 22 6b 6f 6e 74 72 |$script = "kontr|
00000030 6f 6c 6c 65 2e 70 68 70 22 3b 0a 0a 65 63 68 6f |olle.php";..echo|
00000040 20 22 3c 70 72 65 3e 22 3b 0a 65 63 68 6f 20 22 | "<pre>";.echo "|
00000050 3c 68 32 3e 50 4f 53 54 2d 56 61 72 69 61 62 6c |<h2>POST-Variabl|
00000060 65 6e 3c 2f 68 32 3e 22 3b 0a 70 72 69 6e 74 5f |en</h2>";.print_|
00000070 72 28 24 5f 50 4f 53 54 29 3b 0a 65 63 68 6f 20 |r($_POST);.echo |
00000080 22 3c 68 72 3e 22 3b 0a 65 63 68 6f 20 22 3c 68 |"<hr>";.echo "<h|
00000090 32 3e 47 45 54 2d 56 61 72 69 61 62 6c 65 6e 3c |2>GET-Variablen<|
000000a0 2f 68 32 3e 22 3b 0a 70 72 69 6e 74 5f 72 28 24 |/h2>";.print_r($|
000000b0 5f 47 45 54 29 3b 0a 65 63 68 6f 20 22 3c 68 72 |_GET);.echo "<hr|
000000c0 3e 22 3b 0a 65 63 68 6f 20 22 3c 68 32 3e 43 4f |>";.echo "<h2>CO|
000000d0 4f 4b 49 45 2d 56 61 72 69 61 62 6c 65 6e 3c 2f |OKIE-Variablen</|
000000e0 68 32 3e 22 3b 0a 70 72 69 6e 74 5f 72 28 24 5f |h2>";.print_r($_|
000000f0 43 4f 4f 4b 49 45 29 3b 0a 65 63 68 6f 20 22 3c |COOKIE);.echo "<|
und poste davon mal so ca. 20 Zeilen
Harzliche Grüße aus http://www.annerschbarrich.de
Tom
Fortschritt entsteht nur durch die Auseinandersetzung der Kreativen
Nur selber lernen macht schlau