Fehlerbereinigung Datenbank (pw varchar laenge) Registrierung und Login

This commit is contained in:
2026-04-27 09:05:37 +00:00
parent 1ae601801e
commit 6b3e5a61e3
4 changed files with 17 additions and 9 deletions
+2 -1
View File
@@ -70,7 +70,8 @@ session_start();
private function anmelden_db() {
$vorhanden = false;
require("db.inc.php");
if ($stmt = $pdo->prepare("SELECT userid, pw FROM mitglider")) {
if ($stmt = $pdo->prepare("SELECT userid, pw FROM mitglieder"))
{
$stmt -> execute();
while ($row = $stmt -> fetch()) {
if (isset($_POST["userid"]) && $_POST["userid"] == $row['userid'] && md5($_POST["pw"]) == $row['pw']); {