|< 1 2 3 4 >| | 31 Einträge, 4 Seiten |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
sub schwerer_fehler { my $text = shift; my $seite; my $self; if (ref ($text)){ $self = $text ; } $text = shift; $seite .= p ("Ein Fehler ist aufgetreten.") . p (escapeHTML ($text)) . p ("Zurück zur PseudEcom " . $self->home_link ("Homepage")); print header (), start_html (-title => "PseudEcom Corporation", -bgcolor => "white"), $self->standardlayout ($seite), end_html (); exit (0); }
1 2 3
$dbh->selectrow_array ("SELECT doku_id FROM doku_posten WHERE bestell_id = ? AND " . "doku_id = ? AND passwort = ?", undef, $bestell_id, $doku_id, $pwd) or $peh->schwerer_fehler ("Dokument/Passwort stimmt nicht");
1 2 3 4 5 6
#Erzeugt die Links zu den Dokumenten $a = sprintf ("dokument.cgi?bestellung=%s;doku=%s;password=%s", escape ($bestell_info->{bestell_id}), escape ($_->{doku_id}), escape ($passwort) );
1 2 3 4 5 6 7
my $doku_result = $dbh->selectrow_array ("SELECT doku_id FROM doku_posten WHERE bestell_id = ? AND " . "doku_id = ? AND passwort = ?", undef, $bestell_id, $doku_id, $pwd); if ($doku_result){ $peh->schwerer_fehler ("Dokument/Passwort stimmt nicht"); }
Quote"selectrow_array"
@row_ary = $dbh->selectrow_array($statement);
@row_ary = $dbh->selectrow_array($statement, \%attr);
@row_ary = $dbh->selectrow_array($statement, \%attr, @bind_values);
This utility method combines the prepare, execute, and
fetchrow_array entries elsewhere in this document into a single
call. If called in a list context, it returns the first row of data
from the statement. If called in a scalar context, it returns the
first field of the first row. The "$statement" parameter can be a
previously prepared statement handle, in which case the "prepare" is
skipped.
If any method fails, and the RaiseError entry elsewhere in this
document is not set, "selectrow_array" will return an empty list.
In a scalar context, "selectrow_array" returns the value of the
first field. An "undef" is returned if there are no matching rows or
an error occurred. Since that "undef" can't be distinguished from an
"undef" returned because the first field value was NULL, calling
"selectrow_array" in a scalar context should be used with caution.
|< 1 2 3 4 >| | 31 Einträge, 4 Seiten |