MySQL returns:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<?php
$link = mysqli_connect('localhost','root','root')' at line 1
The teacher doesn’t know what’s going on
I suggest you take a screenshot, and also check whether the mysqli extension is enabled