/    Sign up×
Community /Pin to ProfileBookmark

exam results showing webpage

hi guys!

I need some help with creating a exam results showing webpage please anyone got some idea ? ?
i need to make it like when a student enter his/her ID then he/she could see the exam results.

Thanks.

to post a comment
PHP

12 Comments(s)

Copy linkTweet thisAlerts:
@jedaisoulOct 06.2013 — How complex this would be depends on how secure you want it to be, and how many students there are. If you want password protection and a lot of students, then you need a full blown database. That means using PHP and SQL, which is a lot of work. You can simplify the work by using arrays to store the results. That means you need to use PHP but not SQL, but its only practical for smallish volumes of data.
Copy linkTweet thisAlerts:
@kushan86authorOct 07.2013 — hey Jedaisoul thanks for your reply ?

and hmm it should be a simple web page i dont have that much of huge student base only like 50-100 or 50-200 it doesnt have to be that much complex with security and password things ? anyone who has student ID should be able to see the results thats all i need ? may be i can do something from wordpress or joomla? are there any addons or plugins for that since i am very poor with these PHP and MySQL ?

Thanks.
Copy linkTweet thisAlerts:
@kushan86authorOct 07.2013 — thanks for reply but what i shall do with that ? ? hm
Copy linkTweet thisAlerts:
@NogDogOct 07.2013 — Follow the links to the product's site, read the documentation, user comments, etc.; maybe download it and play around with it yourself, and see if it provides the functionality you need.

Or wait patiently here for someone to provide another option/solution?
Copy linkTweet thisAlerts:
@priyankagoundOct 08.2013 — Well...as you said you need a simple one so, for that i think the below link may help you to solve the problem.

[U]http://www.youtube.com/watch?v=DoTGt9CnC5Y[/U]

Hope this helps.
Copy linkTweet thisAlerts:
@jedaisoulOct 08.2013 — Here's a working example of the minimum you need:

<i>
</i>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
&lt;meta charset="windows-1252"&gt;
&lt;title&gt;Exam Results&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;?php
error_reporting(E_ALL ^ E_NOTICE);
/* results note: set $max to last array element */
$results[0]=array('id','code','subject','result');
$results[1]=array('000001','M101','Maths - elementary','E');
$results[2]=array('000001','E101','English language','C');
$results[3]=array('000002','M101','Maths - elementary','A+');
/*
$results[]=array('','','','');
*/
$max='3';

if(isset($_POST['stud_id'])) {
$stud_id=$_POST['stud_id']; }
else {
$stud_id='000000';
}

?&gt;

&lt;form action="#" method=post&gt;
ID &lt;input type="text" name="stud_id" value="&lt;?php echo $stud_id; ?&gt;"&gt;
&lt;input type="submit" name="submit"&gt;
&lt;/form&gt;

&lt;?php
if($stud_id&lt;&gt;'000000') {
/* list results */
for($n='1';$n&lt;=$max;$n++) {
$id=$results[$n][0];
if($id==$stud_id) {
echo '&lt;br&gt;code: '.$results[$n][1].' - '.$results[$n][2].' result: '.$results[$n][3];
}
}}
?&gt;
&lt;/body&gt;
&lt;/html&gt;


Note:

1. The script needs to be called something plus '.PHP' e.g. 'stud_res.php' and must be put on a web server that supports PHP. It will not run in a browser.

  • 2. To run the script set up a shortcut. E.g. If you are using a local host like Wampserver, set the target to:


  • target=http://localhost/stud_res.php.

  • 3. The code is very inefficient, e.g. that the for loop runs through all the results every time. It is just intended to show you the idea.
  • Copy linkTweet thisAlerts:
    @kushan86authorOct 08.2013 — wow Thanks so much jedaisoul! i will test this soon and will let you know <3 atm i am having issue with my PC windows corrupted -_-
    Copy linkTweet thisAlerts:
    @jedaisoulOct 08.2013 — The major limitation of the example I have given is that you have to manually create the array of results. If you have the results in electronic form, that could be avoided by importing them at runtime from a CSV file.
    Copy linkTweet thisAlerts:
    @OMOGRAVITYNov 04.2014 — Hi everyone,

    I need some help, I am doing a project on A Student management system(courses(with maximum credit limit per semester, students records, and more) that can also work as an online exam application for registered students to take their exams when it is time for exams(i.e student management system plus online exam system in one with php and MySQL). Please if anyone can help, I need it badly, I just have 4 weeks left and I am pretty new to programing, I am required to use PHP, MySQL, a little java. where necessary.
    Copy linkTweet thisAlerts:
    @hunkhusainNov 11.2015 — Hey Try this out -: Hackerkernel MCQ test application

    This is a great tutorial on how to create a mcq test application in php
    Copy linkTweet thisAlerts:
    @hunkhusainNov 11.2015 — Hey Bro check It out -:HackerKernel MCQ test application in PHP

    This is a greate tutorial on how to create a MCQ test application in php

    Hope It help

    Regards
    ×

    Success!

    Help @kushan86 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...