in reply to DBI output into browser using CGI

Since you didnt see any sign of print $q->end_html; it is clear your program terminated early, and the only path for that is an error termination. as hippo said Always check the error log.