push current stand
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user