It is possible you used a tutorial and the syntax was in mySQL not mySQLi. I can't be sure of how it got to this state, but the point is that the line is using the old methodology and has to be updated to work with mySQLi versions of the update page.