Also das ist meine Datei "navigation.php":
Code:
<html>
<head>
<title>Navigationsleiste</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="/css/navigation.css">
<script language="JavaScript">
function MM_goToURL()
{
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
</script>
</head>
<body>
<?php
...
db_connect () or exit ();
$result = mysql_query('SELECT * FROM navNodes
WHERE status = '1' AND ebene = '1'
ORDER BY position ASC');
while($row = mysql_fetch_array($result))
{
if $row['id'] != $_GET['id']
{
echo ('<tr><td>');
echo ('<form action="navigation.php" method="get">
<a href=navigation.php?id='.$row['id'].' target="leftFrame"
onMouseDown="MM_goToURL(\'parent.frames[\'mainFrame\']\''
,.$row['url'].');return document.MM_returnValue">'
.$row['name'].
'</a></form>');
echo ('</td></tr>');
}
else
{
echo ('<tr><td>');
echo ('<form action="navigation.php" method="get">
<a href=navigation.php?id='.$row['id'].' target="leftFrame"
onMouseDown="MM_goToURL(\'parent.frames[\'mainFrame\']\''
,.$row['url'].');return document.MM_returnValue">'
.$row['name'].
'</a></form>');
echo ('</td></tr>');
$result2 = mysql_query('SELECT * FROM navNodes
INNER JOIN ...
WHERE status = '1' AND ebene = '2'
ORDER BY position ASC');
while($row2 = mysql_fetch_array($result2))
{
echo ('<tr><td>');
echo ('<a href=\"'.$row2['url'].'\">'.$row2['name'].'</a>');
echo ('</td></tr>');
}
}
}
?>
</table>
</body>
</html>
Also hab das ganze jetzt mal so versucht. Allerdings komm ich mit der INNER JOIN Abfrage nicht klar. Sorry! Vielleicht kannst Du mir noch mal helfen?!? Schau auch sonst bitte mal drüber ob ich das so machen kann, oder ob ich mich in ner Sackgasse befinde.
Vielen Dank schon mal!!!