H
Huub
Hi,
I have written a script that reads from a MySQL database. It works fine,
except that the addition of one AND does not work while it does in Query
Browser:
select betaald2006 from hvw where lidnr = $record and naam != " " and
kenmerk2006 is null
works. The same statement via Perl:
$betaald2006 = "select betaald2006 from hvw where lidnr = $record and
naam != ' ' and kenmerk2006 is null";
does not work. When I remove "and kenmerk2006 is null", it works ok.
With it, I don't get a real error, just this message about $betaald2006:
"Use of uninitialized value in string eq"
in
"if ($betaald2006 eq $vergelijk)"
Any idea what I'm doing wrong?
Thanks
Huub
I have written a script that reads from a MySQL database. It works fine,
except that the addition of one AND does not work while it does in Query
Browser:
select betaald2006 from hvw where lidnr = $record and naam != " " and
kenmerk2006 is null
works. The same statement via Perl:
$betaald2006 = "select betaald2006 from hvw where lidnr = $record and
naam != ' ' and kenmerk2006 is null";
does not work. When I remove "and kenmerk2006 is null", it works ok.
With it, I don't get a real error, just this message about $betaald2006:
"Use of uninitialized value in string eq"
in
"if ($betaald2006 eq $vergelijk)"
Any idea what I'm doing wrong?
Thanks
Huub