ive been trying for ages to do this query, but i cant figure out how
i have 3 tables.
one is a main category table:
cats:
cid | name
1 Main
pages:
pid | name | cid
1 alink 1
2 anotherlink 1
subcats:
scid | name |cid
1 asubcat 1
2 anothersubcat 1
i need to query the database and have them listed like:
Main
asubcat
anothersubcat
alink
anotherlink
can anyone do this?