user delete account

This commit is contained in:
2025-07-03 12:19:19 +02:00
parent bdc491fbfa
commit c94c7f9b45
5 changed files with 33 additions and 6 deletions

View File

@@ -59,4 +59,12 @@ class UserModel extends Database
return $sth->fetch();
}
public function deleteUser($id){
$pdo = $this->linkDB();
$sql = "DELECT * FROM user WHERE id = :id";
$sth = $pdo->prepare($sql);
$sth->execute([":id" => $id]);
return $sth->fetch();
}
}