Hi
I'm new to the dev side of Moodle, and I'm hopeless when it comes to OOP, so please bear with me on this.
I am trying to write a custom report to interrogate the various table of the Moodle database.
I have several users who have completed a quiz containing random questions from categories and some description fields.
I am trying to read the database using simple php and mysql, and I have so far managed to find out a unique user attempt number, however when I then use this to interrogate the mdl_question table, I get no question text as any attempt number just relates to a value of 1 in the questiontext column. All the actual text seems to be in other rows in this table which I can't find any reference to.
In an ideal world I'd like to be able to produce a report user by user, which shows what questions they attempted, what the correct answer is and what they submitted.
I appreciate that I may not be doing this strictly in the right way, but I'd prefer to continue the way I'm going rather than start calling functions I'm not sure of theough moodle.
PLease, Please Please can someone let me know how to relate the attempt number to the question text in the tables. From this point onwards it should be a breeze.
Cheers
Stu