i'm realy confused on how to do this.. deperately need help.
i have two tables as below:
table1- qid(primarykey), qtitle
table2- aid(primarykey), atitle, qid
example,
table1- (qid=1; qtitle=fruits), (qid=2; qtitle=vehicle)
table2- (aid=1; atitle=apple; qid=1), (aid=2; atitle=banana; qid=1), (aid=3; atitle=car; qid=2), (aid=4; atitle=bike; qid=2), (aid=5; atitle=bus; qid=2);
when i retrieve the data from database, it should display like below:
Fruits
apple
banana
Vehicle
car
bike
bus
can anyone help me with this please.. thanks in advance...