Re: executing 2 and more statements

2005-05-16 Thread Michael Peppler
On Mon, 2005-05-16 at 15:22, Ing. Branislav Gerzo wrote: > Hello, > > I'd like to do something like this: > > $sth->prepare(...) > $sth->execute(...) > while (my $hr = $sth->fetchrow_hashref) { > my $oses = get_os( $hr->{id} ); > ... > } > > Function get_os() prepare, execute and ret

executing 2 and more statements

2005-05-16 Thread Ing. Branislav Gerzo
Hello, I'd like to do something like this: $sth->prepare(...) $sth->execute(...) while (my $hr = $sth->fetchrow_hashref) { my $oses = get_os( $hr->{id} ); ... } Function get_os() prepare, execute and return $sth->fetchall_arrayref(); but I'm getting error: DBD::ODBC::st execute faile