Thread Zusätzliches bei SQL-Fehler ausgeben: Problem... (9 answers)
Opened by pktm at 2004-02-27 21:58

pktm
 2004-02-27 23:24
#31791 #31791
User since
2003-08-07
2921 Artikel
BenutzerIn
[Homepage]
user image
Oh, sry, etwas wenig Info:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
sub get_cmd {
# returns an array of sth->fetchrow_hashref
my $cmd = shift;
my $line = shift || 'keine Angabe';
my $data = [];
my $sth = $dbh->prepare($cmd) || die "Zeile: $line" . $dbh->errstr;
my $rv = $sth->execute || die "Zeile: $line" . $dbh->errstr;
while( my $ref = $sth->fetchrow_hashref() ){
push @{ $data }, $ref;
}
$sth->finish();
return $data;
} # get_cmd
http://www.intergastro-service.de (mein erstes CMS :) )

View full thread Zusätzliches bei SQL-Fehler ausgeben: Problem...