|< 1 2 3 >| | 22 Einträge, 3 Seiten |
1
2
3
foreach my $ref ( @{ $sth->fetchall_arrayref } ) {
print STDERR "KEY: $ref->{keyword} => TITEL: $ref->{titel}\n";
}
QuoteCan't coerce array into hash at C:\Projekte\Eventmanager\mysql\smilie.cgi line 77.
1
2
3
foreach my $ref ( @{ $sth->fetchall_arrayref } )
{
push @cols, {IMAGES_PATH => $images_path,IMAGESRC=> $ref->{code}};
push @cols, {IMAGES_PATH => $images_path,IMAGESRC=> $ref->{code}};
1
2
3
while (my $hashref = $sth->fetchrow_hashref){
push @cols, {IMAGES_PATH => $images_path,IMAGESRC=> $hashref->{code}};
}
QuoteDBI fetchall_hashref: invalid number of parameters: handle + 0
Usage: $h->fetchall_hashref($key_field) at C:\Projekte\Eventmanager\mysql\smilie.cgi line 75.
foreach my $ref ( @{ $sth->fetchall_hashref } )
1
2
3
foreach my $ref ( @{ $sth->fetchall_arrayref({}) } ) {
print STDERR "KEY: $ref->{keyword} => TITEL: $ref->{titel}\n";
}
QuoteCode: (dl )1
2
3foreach my $ref ( @{ $sth->fetchall_arrayref({}) } ) {
print STDERR "KEY: $ref->{keyword} => TITEL: $ref->{titel}\n";
}
QuoteAllerdings wundert mich wirklich, was du fuer einen Code hast, in dem du unbedingt eine foreach-Schleife statt einer while-Schleife benoetigst?!
QuoteWas meinst du mit "Mit einer Forecach-Schleife wird nichts angezeigt"?
|< 1 2 3 >| | 22 Einträge, 3 Seiten |