need immediate help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jai
Forum Newbie
Posts: 2
Joined: Fri Mar 19, 2010 7:03 am

need immediate help

Post 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 :)
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: need immediate help

Post by califdon »

Is this a school assignment??
roders
Forum Commoner
Posts: 68
Joined: Tue Oct 20, 2009 9:29 am

Re: need immediate help

Post 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.
phu
Forum Commoner
Posts: 61
Joined: Tue Mar 30, 2010 6:18 pm

Re: need immediate help

Post 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.
Post Reply