in reply to Re^2: CGI-DBI Connectivity and Output
in thread CGI-DBI Connectivity and Output

Hard to say without more information.

My first guess would be that you have some database-related variables set in your environment that are used when you're running it from the command line, but your web server / CGI environment is different.