diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b4a9250 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.project \ No newline at end of file diff --git a/import.php b/import.php new file mode 100644 index 0000000..6c05c15 --- /dev/null +++ b/import.php @@ -0,0 +1,26 @@ + + + + + + Import + + + + +query("INSERT IGNORE INTO `unileipzig-en` (wort) VALUES ('$importliste")) { + echo "Erfolgreich importiert"; +} else { + echo "Es ist ein Fehler aufgetreten: "; + echo $mysqli->error; +} +?> + + diff --git a/verbindungsaufbau.php b/verbindungsaufbau.php new file mode 100644 index 0000000..b23cd4a --- /dev/null +++ b/verbindungsaufbau.php @@ -0,0 +1,10 @@ +connect_error) { + echo "Verbindungsfehler: ". mysql_connect_error(); + exit; +} +if (!$mysqli->set_charset("utf8")) { //Zeichensatz auf UTF-8 setzen (Umlaute!) + echo "Fehler beim Laden von UTF-8"; +} +?>