it should looks like unless ($sth->execute()+0) {....
In reply to Re: Database Update or Insert by asdfgroup in thread Database Update or Insert by Mr. Muskrat