MySQLi INSERT
Ananya only reaches for MySQLi INSERT when fetch marks by roll has to stay correct in the college DB.
For MySQLi INSERT, Apache/Nginx is in play. Don’t blame it until you have traced fetch marks by roll.
Without MySQLi INSERT, the college DB gets messy and fetch marks by roll is hard to trust.
Use MySQLi INSERT when fetch marks by roll must stay clear. If a simpler PHP step works, use that instead.
MySQLi INSERT miss — string-concat SQL. Fix it before you talk about advanced PHP.
Place MySQLi INSERT next to nearby PHP work — prepared statement is the link.
Viva for MySQLi INSERT — what it is → prepared statement → the mistake (string-concat SQL).
For MySQLi INSERT: definition + the college DB + one failure.