diff --git a/allgemein.php b/allgemein.php index b4de354..79938b9 100644 --- a/allgemein.php +++ b/allgemein.php @@ -116,5 +116,36 @@ + \ No newline at end of file diff --git a/forms/pruefeDuplikat.php b/forms/pruefeDuplikat.php new file mode 100644 index 0000000..1738da4 --- /dev/null +++ b/forms/pruefeDuplikat.php @@ -0,0 +1,16 @@ +prepare("SELECT COUNT(*) + FROM deutsch + WHERE LOWER(wort) = LOWER(:wort);"); + $stmt->execute(['wort' => $wort]); + $wortAnzahl = $stmt->fetchColumn(); + + echo json_encode($wortAnzahl); \ No newline at end of file diff --git a/verben.php b/verben.php index a0df0af..d5f3bb6 100644 --- a/verben.php +++ b/verben.php @@ -97,5 +97,36 @@ + \ No newline at end of file