in reply to again mySQL

I ran your script on my local webserver and MySQL and it worked fine. The only line I had to change to get it to run (without having your db) was
$dbh = DBI->connect("DBI:mysql:testjvd:localhost","root","mysqljvd",{P +rintError => 0})
So IMVHO the problem is either that one of those DBI parameters is wrong (which it can't be if it works from the command line) or... well, the apache error_log makes it look like the problem is nothing to do with the script. Are you saving it in the right place? Can you run other scripts that you save in the same place?

§ George Sherston