How to update database for each user in loop. Only last user in database id being updated
Im trying to create a small library program. In this program, when i click on the button it should search for all the users that borrow books and the return date will expire today. Then it should update the database and mark them as overdue. After which it will update the blocklist to indicate they are blocked from borrowing anymore books.