print "check1";
my $dbArgs = { RaiseError => 1, AutoCommit => 0 , TraceLevel => 3 ,
PrintError => 1 };
print "check2";
my $dbh = DBI->connect("DBI:mysql:database=answerguy;",
"robsonde", "ur4xgod",$dbArgs )
or die "Cannot connect to database: $!";
print "check3";
with this code i get check1 and check 2 but not check3 or any error.
I think I hate modperl
At 12:37 p.m. 6/02/2006, Michael Peters wrote:
John Doe wrote:
> An easy quick and dirty way to find out where your code stucks is
by putting
> warns (go to the error log) or prints (go to browser) after every
statement
> in the code.
warns are nice cause they go to the error log rather than waiting on
the browser
to receive and display. But even better is to step through the code with the
Perl debugger -
http://perl.apache.org/docs/1.0/guide/debug.html#Interactive_mod_perl_Debugging
--
Michael Peters
Developer
Plus Three, LP
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/251 - Release Date: 4/02/2006