in reply to DBI output into browser using CGI

As you never assign a value to $user your database connection attempt will fail. This will be recorded in the web server (or CGI server) error log. Always check the error log.

BTW, this:

my $sql = qq{ SELECT $fields FROM t_activ_instrument where fps_subject = '$symbol' };

is an SQL injection attack waiting to happen. Use placeholders, always.

Replies are listed 'Best First'.
Re^2: DBI output into browser using CGI
by billycote (Novice) on Apr 25, 2017 at 15:20 UTC
    $user as well as other parameters comes in from another form that calls this page. What I don't get is why it would work on the command line and not the browser.