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 }
In reply to Re^3: Having issues with DBI
by woodpeaker
in thread Having issues with DBI
by zoophagous
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |