$new = array();
$seta = array();
$setb = array();
//Verbindung zum Server
// open a connection
if (!$db = @ora_logon("ipv@fpsdb1","ipv")) {
$error = ora_error();
printf("There was an connecting error. Error was: %s", $error);
die();
}
//Select auf die Datenbank
else{
$curs = ora_open($db);
$sql = "select geraet_name, ip_adresse from ipv.fix_kommunikationsparameter where geraet_name != '' ";
$sql_b = "select geraet_name, geraet_typ from obv.fix_lesegeraet_konfiguration where geraet_name not like '%BCK%' and geraet_name not like '065%' order by geraet_name";
if (!@ora_parse($curs,$sql)) {
echo "Error in parse. Error was :", ora_error($curs);
} else {
ora_exec($curs);
ora_fetch_into($curs, $seta);
}
if (!@ora_parse($curs,$sql_b)) {
echo "Error in parse. Error was :", ora_error($curs);
} else {
ora_exec($curs);
ora_fetch_into($curs, $setb);
}
if(count($seta) == count($setb)) {
for($i = 0, $c = count($seta); $i < $c; $i++) {
for($j = 0, $d = count($setb2); $j < $d; $j++) {
if($seta[$i][0] == $setb[$j][0]) {
$new[][0] = $seta[$i][0];
$new[][1] = $seta[$i][1];
$new[][2] = $setb[$j][1];
}
}
}
}
}