http://www.perlmonks.org?node_id=114797


in reply to Why does my query work on the command line, but fail in my browser?

check to make sure that the userid the script runs under has been granted database access rights. when using apache, the id can be found in httpd.conf under the user/group settings.