Still Same Error

it runs and connects to DB when console but not when called as cgi from
web.