I have data in a sql database that'd I'd like to display on a simple website. The data has an initial question ID "IntQID", which is an auto increment field. Every post has an IntQID. There is another field called "ResID", which is the response ID for a post that is responding to a question. The only data that has no ResID is the initial question a user posts. What's i'm trying to do is write a php script that will pull that data and display it like so:
Question 1:
Answer 1
Answer 2
Answer 3
etc...
Question 2:
Answer 1
Answer 2
Answer 3
etc...
Etc.....
Additional Info: - ResID and IntQID are in the same Table