Thread MySQL + Transaktion -> funktioniert nicht
(30 answers)
Opened by SirLant at 2003-08-25 16:00
Kann es sein, dass die Abfrage immer "stirbt", da die doku_id != 1 ist?Und alles was nicht 1 ist als false gilt?
Ich versuche mal den Rückgabewert in ne Variable zu packen. edit: Code (perl): (dl
)
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"); } läuft :) Und das Problem mit der Transaktion oben habe ich jetzt auch hinbekommen (bindet and/or mehr als &&/|| ? Dachte immer wäre umgekehrt)\n\n <!--EDIT|SirLant|1061844027--> --Programming today is a race between Software Enginers striving to build bigger and better idiot-proof Programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning! |