If it is saying it's a MySQL error on the first line of that code, then I would guess there is something weird about how the page is being called. MySQL shouldn't be involved in that part of the page at all. Take a look at the code that calls that page.
(Also, typically any 'code' (like your 'do' comparisons that you have at the top of that page) should go after all the array definitions and includes.)
|