Derek Robson wrote: > > > 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.
Not to be harsh, but you didn't follow my advice, or the advice of the poster previous to me. User "warn" not "print" so that it goes to your apache error log, not the browser. Then if that doesn't help, try starting in single process mode and using the Perl debugger. Using DBI and querying a database from mod_perl can be done the same as from the command line, so something is really weird with your setup. > I think I hate modperl I'm not sure I blame you, but wouldn't it be nice to find out why this is happening since it doesn't happen to anyone else? -- Michael Peters Developer Plus Three, LP