Thread Newbie -Keine Ausgabe bei mysql-query
(62 answers)
Opened by Gast at 2009-01-14 01:45
OK hab deinen quelltext jetzt mal übernommen: funktioniert!!!
bei dbi3.pl bekomme ich folgende Fehlermeldung: Software error: Global symbol "$driver" requires explicit package name at c:\inetpub\wwwroot\cgi-bin\dbi3.pl line 8. Global symbol "@sources" requires explicit package name at c:\inetpub\wwwroot\cgi-bin\dbi3.pl line 9. Global symbol "$driver" requires explicit package name at c:\inetpub\wwwroot\cgi-bin\dbi3.pl line 9. Global symbol "@sources" requires explicit package name at c:\inetpub\wwwroot\cgi-bin\dbi3.pl line 11. Execution of c:\inetpub\wwwroot\cgi-bin\dbi3.pl aborted due to compilation errors. For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. Hier nochmal der Code: Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 #!C:/Perl/bin/perl.exe -w # dbi3.pl vorhandene Datenquellen use DBI; use strict; BEGIN { print "Content-type: text/html\n\n"; use CGI::Carp qw/fatalsToBrowser/ } $driver = "mysql"; @sources = DBI ->data_sources($driver); print "vorhandene Datenquellen:<br>"; foreach (@sources){ print "$_<br>"; } |