in reply to Re: Re: Checkbox Query Revisited
in thread Checkbox Query Revisited

OK. I understand what is (or rather is not) happening. This DBI.pm documentation explains all the bits.

Whats happening is that the call to my $sth = $dbh->prepare($sql); appears to be failing and hence you cannot run the immediate next command (sth->execute) because sth is not the correct object type.

Why $dbh->prepare doesn't work is beyond me as I've never used DBI.pm but I suspect that is you add change the prepare line to my $sth = $dbh->prepare($sql) || die $dbh->errstr; you'll get a more helpful error message.

PS I recommend uncommenting the use CGI:Carp line at the top of the script for debugging.

Dingus


Enter any 47-digit prime number to continue.