in reply to Re^2: Having issues with DBI
in thread Having issues with DBI
ORmy $sth = $dbh->prepare(qq{...}); $sth->execute(); if($sth->rows){ #If handler has affected rows }
There is more then one way to do (c) ))) Yuo can also try my $hash = $sth->fetchrow_hashref() || undef;my $sth = $dbh->prepare(qq{...}); $sth->execute(); while(my $row = $sth->fetchrow_hashref()){ #just do something if $sth +can return any records }
|
|---|