$abfrage="SELECT * from inhalt where zuid1=0 and zuid2=0 and anzeige=1 and mvar=2 order by rf";
$sql = "$abfrage";
$result = mysql_query($sql);
if($result) :
while($list = mysql_fetch_array($result)) {
$tt=$tt+1;
$menub1=$list[menub1];
$menub2=$list[menub2];
if($ID==$list[ID]) { $menub=$menub2; } else { $menub=$menub1; }
?>
} endif; ?>
style="border-right:#2C3C89 1px solid;" } ?> >
$abfrage="SELECT * from inhalt where zuid1=0 and zuid2=0 and anzeige=1 order by rf";
$sql = "$abfrage";
$result = mysql_query($sql);
if($result) :
while($list = mysql_fetch_array($result)) {
?>
if($ID==$list[ID]) {
$abfragex="SELECT * from inhalt where zuid1=$ID and zuid2=0 and anzeige=1 order by rf";
$sqlx = "$abfragex";
$resultx = mysql_query($sqlx);
if($resultx) :
while($listx = mysql_fetch_array($resultx)) {
?>
if($ID==$list[ID] && $zuid1==$listx[ID]) {
$abfragey="SELECT * from inhalt where zuid1=$ID and zuid2=$zuid1 and anzeige=1 order by rf";
$sqly = "$abfragey";
$resulty = mysql_query($sqly);
if($resulty) :
while($listy = mysql_fetch_array($resulty)) {
?>
$abfrage="SELECT * from inhalt where ID=22 and anzeige=1 order by rf";
$sql = "$abfrage";
$result = mysql_query($sql);
if($result) :
while($list = mysql_fetch_array($result)) {
?>
$abfragex="SELECT * from inhalt where zuid1=22 and zuid2=0 and anzeige=1 order by rf";
$sqlx = "$abfragex";
$resultx = mysql_query($sqlx);
if($resultx) :
while($listx = mysql_fetch_array($resultx)) {
?>
if($ID==$list[ID] && $zuid1==$listx[ID]) {
$abfragey="SELECT * from inhalt where zuid1=$ID and zuid2=$zuid1 and anzeige=1 order by rf";
$sqly = "$abfragey";
$resulty = mysql_query($sqly);
if($resulty) :
while($listy = mysql_fetch_array($resulty)) {
?>
} endif;
}
?>
} endif;
?>
} endif; ?>
$abfrage="SELECT * from inhalt where ID=23 and anzeige=1 order by rf";
$sql = "$abfrage";
$result = mysql_query($sql);
if($result) :
while($list = mysql_fetch_array($result)) {
?>
$abfragex="SELECT * from inhalt where zuid1=23 and zuid2=0 and anzeige=1 order by rf";
$sqlx = "$abfragex";
$resultx = mysql_query($sqlx);
if($resultx) :
while($listx = mysql_fetch_array($resultx)) {
?>
if($ID==$list[ID] && $zuid1==$listx[ID]) {
$abfragey="SELECT * from inhalt where zuid1=$ID and zuid2=$zuid1 and anzeige=1 order by rf";
$sqly = "$abfragey";
$resulty = mysql_query($sqly);
if($resulty) :
while($listy = mysql_fetch_array($resulty)) {
?>
} endif;
}
?>
} endif;
?>
} endif; ?>
$abfrage="SELECT * from inhalt where ID=8 and anzeige=1 order by rf";
$sql = "$abfrage";
$result = mysql_query($sql);
if($result) :
while($list = mysql_fetch_array($result)) {
?>
$abfragex="SELECT * from inhalt where zuid1=8 and zuid2=0 and anzeige=1 order by rf";
$sqlx = "$abfragex";
$resultx = mysql_query($sqlx);
if($resultx) :
while($listx = mysql_fetch_array($resultx)) {
?>