hi,
if($array[blubb]!=0) {
$string= abfrage aus anderen tabelle (genau ein datensatz betroffen; vergleichbar mit: $id vorhanden, titel dazu wird gesucht)
$db->query($string);
an dieser stelle überschreibst du dir höchstwahrscheinlich dein erstes abfrage-ergebnis - weil du hier wiederum $db dafür nutzt.
gruß,
wahsaga
--
"Look, that's why there's rules, understand? So that you _think_ before you break 'em."
"Look, that's why there's rules, understand? So that you _think_ before you break 'em."