This commit is contained in:
Samuel Wolff 2024-01-17 10:21:14 +01:00
parent d4a67f0a30
commit 1357e21155

View File

@ -113,29 +113,6 @@ class BenutzerModel extends Database
return $result;
}
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;
}
}
?>