sam[deluxe]
20-07-2003, 15:13
Folgendes Problem:
Ich habe 2 MySQL Tabellen
Shop_cat (Kategorien)
+------------+------------+
|___id_cat___|____cat_____|
+------------+------------+
|_____1______|__Hardware__|
+------------+------------+
|_____2______|__Software__|
+------------+------------+
|_____2______|__Literatur_|
+------------+------------+
Shop_catcat (Unterkatgorien)
+------------+------------+------------+
|__id_catcat_|___catcat___|___id_cat___|
+------------+------------+------------+
|_____1______|____PCs_____|______1_____|
+------------+------------+------------+
|_____2______|__Notebooks_|______1_____|
+------------+------------+------------+
|_____2______|____Apple___|______2_____|
+------------+------------+------------+
|_____2______|__Windows___|______2_____|
+------------+------------+------------+
|_____2______|__Programm._|______3_____|
+------------+------------+------------+
Im Prinzip soll aus diesen Tabellen ein PHP Menü entstehen, ungefähr so:
Hardware
- PCs
- Notebooks
Software
- Apple
- Windows
Literatur
- Programmierung
Ich bekomme es aber einfach nicht hin, in dieser Reihenfolge in PHP auszugeben, ich habe es über for() Schleifen probiert, schaffe es aber nicht und brauche deshalb eure Hilfe.
Ich habe 2 MySQL Tabellen
Shop_cat (Kategorien)
+------------+------------+
|___id_cat___|____cat_____|
+------------+------------+
|_____1______|__Hardware__|
+------------+------------+
|_____2______|__Software__|
+------------+------------+
|_____2______|__Literatur_|
+------------+------------+
Shop_catcat (Unterkatgorien)
+------------+------------+------------+
|__id_catcat_|___catcat___|___id_cat___|
+------------+------------+------------+
|_____1______|____PCs_____|______1_____|
+------------+------------+------------+
|_____2______|__Notebooks_|______1_____|
+------------+------------+------------+
|_____2______|____Apple___|______2_____|
+------------+------------+------------+
|_____2______|__Windows___|______2_____|
+------------+------------+------------+
|_____2______|__Programm._|______3_____|
+------------+------------+------------+
Im Prinzip soll aus diesen Tabellen ein PHP Menü entstehen, ungefähr so:
Hardware
- PCs
- Notebooks
Software
- Apple
- Windows
Literatur
- Programmierung
Ich bekomme es aber einfach nicht hin, in dieser Reihenfolge in PHP auszugeben, ich habe es über for() Schleifen probiert, schaffe es aber nicht und brauche deshalb eure Hilfe.
