DB = new DB($conf->WFdbhost,$conf->WFdbname,$conf->WFdbuser,$conf->WFdbpass,null,$conf->WFdbport); // wenn das skript laeuft hier abbrechen $arradresse = $app->DB->SelectArr("SELECT id, konto,blz,iban FROM adresse WHERE iban=''"); for($i=0;$iDB->SelectArr("UPDATE adresse SET iban='$iban' WHERE id='".$arradresse[$i]['id']."' LIMIT 1"); $iban=""; } } function make_iban($blz, $kontonr) { $blz8 = str_pad ( $blz, 8, "0", STR_PAD_RIGHT); $kontonr10 = str_pad ( $kontonr, 10, "0", STR_PAD_LEFT); $bban = $blz8 . $kontonr10; $pruefsumme = $bban . "131400"; $modulo = (bcmod($pruefsumme,"97")); $pruefziffer =str_pad ( 98 - $modulo, 2, "0",STR_PAD_LEFT); $iban = "DE" . $pruefziffer . $bban; return $iban; } ?>