Page 1 of 1

need immediate help

Posted: Tue Mar 30, 2010 4:11 pm
by jai
Hi,

I have an assessment code attached , in that i need to know where the final marks have been stored. The marks have been displayed based on categories and i need those marks. On knowing the marks of various categories i have to retrieve that particular content.

For instance in this it will display like Divide and conquer - 3 good answers on 3 questions
Greedy method - 2 good answers on 3 questions
Backtracking - 0 good answers on 3 questions

Here we notice that total number of questions is 3. In divide & conquer he has scored 3 on 3 so he must given the hard content as e-learning and for greedy its 2 on 3 so medium content must be given and in backtracking easy content must be given as e-learning content.

These e-learning content is given as links and stored in a text file (ontology.txt)
The questions are given in another text file (qcm3.txt)
The assessment code file (QCM.php)

Now my need is i want to retrieve the e-learning content based on their marks obtained.

Thank you :)

Re: need immediate help

Posted: Tue Mar 30, 2010 5:07 pm
by califdon
Is this a school assignment??

Re: need immediate help

Posted: Wed Mar 31, 2010 7:06 am
by roders
If you data is stored in a text file then, using fread http://php.net/manual/en/function.fread.php and a few PHP if else statement http://php.net/manual/en/control-structures.if.php should be good enough to get you where you want.

Re: need immediate help

Posted: Thu Apr 01, 2010 3:17 am
by phu
Seems from your profile that you're digging hard for free work. That's pathetic, particularly considering how willing people often are to write PHP for you if you come off as an honest n00b. Contract out or do it yourself; don't leech off of people's good will.