This commit is contained in:
PBG2H22AWO committed 2024-01-17 10:21:04 +01:00
commit d4a67f0a30
2 files changed
+90 -65

No files matched your search

+21
View File
@@ -115,6 +115,27 @@ class BenutzerModel extends Database
}
public function nextId()
{
$pdo = $this->linkDB();
$sql = "SELECT `auto_increment` FROM INFORMATION_SCHEMA.TABLES WHERE table_name = 'Benutzerkonto'; ";
try {
$stmt = $pdo->prepare($sql);
$stmt->execute();
} catch (\PDOException $e) {
return false;
}
$result = $stmt->fetchALL(\PDO::FETCH_ASSOC);
return $result;
}
}
?>