Well, this is not a database error, it is a PHP error. Hopefully some moderator will move it to a more apropriate forum.
What it means is that you try to set headers after you have sent something to the browser. A space or return is enough, you can't send anything before the headers.