Uh, you're not connected to your database to begin with, which will throw an error. Your query won't run, 'cause PHP isn't finding your DB in the first place. Check your MySQL stuff to see if your getting a response at all. Then comment your queries to see which one is causing problems, if any.
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
You have not yet logged in, or registered properly as a member
You are a member, but no longer have posting rights.
This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.