MySQLi UPDATE
Asha only reaches for MySQLi UPDATE when fetch marks by roll has to stay correct in the college DB.
For MySQLi UPDATE, a .php page is in play. Don’t blame it until you have traced fetch marks by roll.
Without MySQLi UPDATE, the college DB gets messy and fetch marks by roll is hard to trust.
Asha ships MySQLi UPDATE in the college DB. That is the use case worth saying.
If fetch marks by roll breaks under MySQLi UPDATE, check string-concat SQL first.
MySQLi UPDATE is not a lonely heading. Asha ties it to fetch marks by roll.
One breath for MySQLi UPDATE, then fetch marks by roll, then string-concat SQL. Sit down.
Board: fetch marks by roll. Dry-run MySQLi UPDATE. Name the trap: string-concat SQL.