CSV- auslesen PHP ausgabe

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • #16
    Also zuerst erstellst du dir eine Tabelle in MySql --> PHPMyAdmin kann helfen. Dann liest du die CSV Datei ein
    PHP-Code:
    $daten = array();
    $fp fopen('deineCSV.csv');
    while(
    $re=fgetcsv($fp,1000,';')) !== false){
      if(
    $re['4'] == '25' && $re['3'] == 'UEBERWEISUNGSGUTSCHRIFT'){
        
    $daten[] = $re;
      }
    }
    fclose($fp);
    foreach(
    $daten as $wert){
      
    //$wert ist ein Array, das du nun in die DB eintragen musst

    Gruss

    tobi
    Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

    [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
    Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

    Kommentar

    Lädt...
    X