in reply to Re: Re: DBI Help!
in thread DBI script gives HTTP 500 error

Thats all it says?!?!? For one thing, you're using strict (which is good), but you're not declaring $dbh or $sth with my (which is bad). See Use strict or die! and/or Use strict and warnings.

Replies are listed 'Best First'.
Re: Re: Re: Re: DBI Help!
by peppiv (Curate) on Jan 15, 2002 at 01:57 UTC
    I just tried declaring with my and the results are the same. Funny thing, there are no error logs!

      This may be obvious, but what happens when you perl -c yourscript.pl?

      That should give you some useful information if it's a compile error. And I would be stunned if your server doesn't have error logs. If it's apache, check /usr/local/apache/logs/errors.

      Chris