I think that is not the file with the problems. it's html.php and the mysql errors spawn from the first error which is what Myokram said. When you fix it, you shouldn't be getting the rest of the errors.
headers were already sent meaning you have something already written in the page, either by...