in reply to Re^2: Having issues with DBI
in thread Having issues with DBI

Well, Sometimes I m checking values like that..
my $sth = $dbh->prepare(qq{...}); $sth->execute(); if($sth->rows){ #If handler has affected rows }
OR
my $sth = $dbh->prepare(qq{...}); $sth->execute(); while(my $row = $sth->fetchrow_hashref()){ #just do something if $sth +can return any records }
There is more then one way to do (c) ))) Yuo can also try my $hash = $sth->fetchrow_hashref() || undef;