Original Post
I currently have this query:
EDIT: I am using MySQL 4.0.something
Toolmaker
-Earth is 98% full. Please delete anybody you can. [edited by - toolmaker on March 9, 2004 4:03:54 PM]
SELECT * FROM NavHeaders As Head, NavLinks As Link WHERE Head.NH_ID = Link.NV_HID ORDER BY NH_ID ASCThis returns _ALL_ items in NavHeader that have one or more NavLink items attached to this:
+-------+----------+-------+--------+-----------+---------------------+ | NH_ID | NH_Title | NV_ID | NV_HID | NV_Text | NV_Link | +-------+----------+-------+--------+-----------+---------------------+ | 1 | Main | 3 | 1 | Post Blog | blog.php?action=new | | 1 | Main | 2 | 1 | Blog | blog.php | | 1 | Main | 1 | 1 | Home | index.php | +-------+----------+-------+--------+-----------+---------------------+However, how do I retrieve ALL NavHeaders, wether they have a NavLink attached or not, but still selecting all the NavLinks that correspond with that header? And, could you elaborate your answer
-Earth is 98% full. Please delete anybody you can. [edited by - toolmaker on March 9, 2004 4:03:54 PM]