push current stand

This commit is contained in:
WummerMIB
2025-12-05 08:37:52 +01:00
parent 00bcb5afec
commit 075465e56b
7 changed files with 135 additions and 60 deletions
+12
View File
@@ -27,6 +27,18 @@ class BenutzerModel extends Model {
public function getErrors() { return $this->errorArray; }
public function getAllUsersExcept($id)
{
$db = Database::getInstance()->getConnection();
$stmt = $db->prepare("SELECT id, vorname, nachname FROM user WHERE id != ?");
$stmt->bind_param("i", $id);
$stmt->execute();
return $stmt->get_result()->fetch_all(MYSQLI_ASSOC);
}
// --- Registrierung ---
public function insert() {
$this->validate();