in reply to CGI and DBI, new to me...

A giant robot might be warbling about warnings becasuse that code is truly scary. You're taking values from the user and injecting them directly into your SQL without even checking what they are. Madness.

You should, at least, use the quote() method to keep things sensible, or placeholders as Ryszard suggests.

For diagnostics, I would run the script from the command-line with parameters to see if you can replicate the problem there. It could be that your RDBMS isn't accepting connections.

Also, without linefeeds, you might have to set $|++ to turn off buffering. Put this near the top of your program, if so required.

Replies are listed 'Best First'.
Re: Re: CGI and DBI, new to me...
by mojobozo (Monk) on Dec 13, 2002 at 19:56 UTC
    Warnings aside, this is just a rough draft and I want to see it work before I make it safe. First, make sure gun shoots, then add safety.
    _____________________________________________________
    mojobozo
    word (wûrd)
    interj. Slang. Used to express approval or an affirmative response to
    something. Sometimes used with up. Source

      Ahh, the Zapp Branigan school of tactics. "I conquered the killer robots by throwing wave after wave of men at them until the robots were tired of killing!" :)