The following code set $rv1 to a value of -2 on an empty table yet works ok on a populated table.
I can work round it but is there an underlying cause?
Keith
Code:
my $sql1="SELECT OU, OP, QU, QP, FNUM, MESSIGE, RED, FREDNO, QNUM from BABBLE WHERE OU=\"$MET\ AND OP=\"$YUT\"";
my $sth1=$dbh->prepare($sql1);
$sth1->execute();
my $rv1=$sth1->rows;
Keith