in reply to Perl CGI and SQL statements
needed to be:$db = new Win32::ODBC("$DSN"),
You've posted the code again with the same error. You could at least fix that bit.$db = new Win32::ODBC("$DSN");
use diagnostics; can be very useful. But if you have many errors it can be a bit overwhelming! I would comment it out while you eliminate the obvious errors. I added use warnings; added my to a few variable declarations and was able to get the thing to compile. Which is a start. Difficult to help you much more because of your data source.
Hope that helps.
Update:
should be:$cgi->p("$dept was received."),
$cgi->p("$dept was received.");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl CGI and SQL statements
by kjg (Sexton) on Apr 19, 2006 at 09:30 UTC | |
by wfsp (Abbot) on Apr 19, 2006 at 09:40 UTC | |
by kjg (Sexton) on Apr 19, 2006 at 10:26 UTC | |
by cdarke (Prior) on Apr 19, 2006 at 11:10 UTC | |
by kjg (Sexton) on Apr 19, 2006 at 12:16 UTC | |
by osunderdog (Deacon) on Apr 19, 2006 at 13:44 UTC | |
by ptum (Priest) on Apr 19, 2006 at 13:33 UTC | |
by wfsp (Abbot) on Apr 19, 2006 at 10:43 UTC | |
by kjg (Sexton) on Apr 19, 2006 at 11:26 UTC | |
by osunderdog (Deacon) on Apr 19, 2006 at 11:56 UTC |