I hope the administrators didn't give you that same exact script, as I immediately notice a parse error, another error involving a comparison operator versus an assignment operator, and the use of a "SELECT *" query.
But as johanafm points out, your PHP script isn't being parsed at all if you can see the code in your browser, so I would worry bout fixing that first.
EDIT: Make that 2 parse errors.