Hey.... My first post... So hey to everyone
ok... now the question....
What i want is to create menu that gets all its information from a database.... (easy)
But..... what i cant work out how to do is list things under categories....
let me explain some more...
say i have
-- BOB1 (LINK)
i could do this by having a table for each CAT... But thats not what i want
I want to have all the links and CATS in 1 table... and i want to be able to easily reorder the cats and links.
So i had this idea:
CAT1 (type=1, pos=1.0)
-- BOB1 (type=0, pos=1.1)
-- BOB2 (type=0, pos=1.2)
-- BOB3 (type=0, pos=1.3)
CAT2 (type=1, pos=2.0)
-- BILL1 (type=0, pos=2.1)
-- BILL2 (type=0, pos=2.2)
-- BILL3 (type=0, pos=2.3)
CAT3 (type=1, pos=3.0)
-- James1 (type=0, pos=3.1)
-- James2 (type=0, pos=3.2)
-- James3 (type=0, pos=3.3)
So.... type=1 lets sql/php know that its a CAT and type=0 lets it know that its a link....
pos = the position of the cat and the position of the link within the cat.... (still with me?)....
But i just cant understand how i will write the code to make this all work.....
Thanks ALOT for any help anyone can give me!