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.
In reply to Re: DBI output into browser using CGI
by hippo
in thread DBI output into browser using CGI
by billycote
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |