Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

weird CGI problem

by Alex the Serb (Monk)
on Jan 24, 2002 at 17:11 UTC ( [id://141200]=perlquestion: print w/replies, xml ) Need Help??

Alex the Serb has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: weird CGI problem
by theguvnor (Chaplain) on Jan 24, 2002 at 17:24 UTC
    You've made the call to end_table and end_html but forgotten to print them! I'm pretty sure it's as simple as that.
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: weird CGI problem
by little (Curate) on Jan 24, 2002 at 17:17 UTC
    you have a spell error in line 25 as the error says:
    $dbh->diconnect; should be $dbh->disconnect; I guess?

    Have a nice day
    All decision is left to your taste
    Update:
    Due to the occured error your script doesn't finish, so thats the reason that CGI.pm is being blocked from ending the task in writing the closing tags to STDOUT. A dead chicken might keep running, an ended script not. ;-)
    Update_2:
    And of course the theguvnor is correct as you had a warning and the script completes. I just didn't read further than teh cause of your error warning. :-)
Re: weird CGI problem
by Zaxo (Archbishop) on Jan 24, 2002 at 17:33 UTC

    You've forgotten to print the closing tag functions:

    print $q->end_table, $q->end_html;
    It would be good to either check for errors on DBI methods, or else set the DBI attr {RAISE_ERROR => 1} when you connect.

    After Compline,
    Zaxo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://141200]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-19 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found