perlquestion
rb_rb
Hallo,
I want to get out a list of values out of my database. I tried out the method fetchrow_array and expected to receive an array. But I only got the first matching value, not all. What can be the mistake?
And this is the code:
<code>
$sql = "select status from sh_protokoll where asek_jn = 'j'";
$sth = $dbh->prepare($sql);
$res = $sth->execute();
@ary = $sth->fetchrow_array();
$res = $sth->finish();
</code>
Many thanks
R.B.