ckim06 has asked for the wisdom of the Perl Monks concerning the following question:
So it runs fine from the command line, but not anywhere else. I saw the FAQ at www.roth.net and I saw this question on here, but I didn't understand it very well. So please don't just copy and paste from the roth FAQ.require "c:/vcanew/cgi-bin/cgi-lib.pl"; print &PrintHeader; print &HtmlTop(); if (!($db = new Win32::ODBC("MyDSN"))) { print Win32::ODBC::Error(); print &HtmlBot; exit(); } else { print "Works"; print &HtmlBot; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::ODBC doesn't connect on browser
by andreychek (Parson) on Jun 30, 2001 at 06:06 UTC | |
by Anonymous Monk on Jul 03, 2001 at 02:02 UTC |