Complicated, fetch data php database.
I have a list of question where a auditor reviews a job.
These questions are just ticked & the answer are stored in db in following table: 'AuditJobDetails'
AuditJobDetails contains: ID, JobID, QuestionID, UserID
JobID is the job id which he is reviewing, question id is question which is reviewed. userid is auditor's user id.
There are like 15 questions. These data are stored very well. Screenshot of db is attached.
Now i want to show all questions from a simple db where all question are entered.
Now when viewing result i want to show all question & also show which were ticked by auditor. File attached.
Audit details wil be viewed using JobID, thats what i thought. But not sure how its done..
Help me please.