Exam results script

Started on the old forum in July 2011 · view the original in the archive · old links redirect here

7 replies · 1,940 views · started 15 years ago · 1 min read

4 participants
wapcult Developer · 53 posts #1

hello i need this script do u have ??? i will make for my school

VISIT US FOR FREE EARN

http://POCK.IN

MOBILE ADVERTISEMENT & EARN MONEY

i0nutzxp Developer · 150 posts #2

Like :

FirstName Surname Class Point/Grade ****erman Max 11 A+ . . . Gerrard Steven 12 B

?

<?php unlink('World/Europe/Romania.country'); ?>
wapcult Developer · 53 posts #3

ya i need that type script

VISIT US FOR FREE EARN

http://POCK.IN

MOBILE ADVERTISEMENT & EARN MONEY

s3nzo Developer · 156 posts #4

Create a page and give it a name mark.html and put this code in body

<form action="symbol.php" method="POST">Enter mark <input type="text" name="mark"></form>

Then create a page name it symbol.php and put this code where you want marks/symbols to appear

<?php
 $mark = $_POST['mark']; 
 
switch($mark)
 {
  case "$mark > 79" : print "A ".$mark;
     break;
  case "$mark > 69" : print "B ".$mark;
     break;
  case "$mark > 59" : print "C ".$mark;
     break;
  case "$mark > 49" : print "D ".$mark;
     break;
  case "$mark > 39" : print "E ".$mark;
     break;
 default : print 'Shame';
 }
?>
i0nutzxp Developer · 150 posts #6

here is a simple example with array .. if you want i'll make one with mysql 😛

<?php
$arr = array(
   array('firstname'=>'Lazar', 'surname'=>'Marghioala', 'grade'=>'A'),
   array('firstname'=>'Avram', 'surname'=>'Antoneta', 'grade'=>'B'),
   array('firstname'=>'Lazar', 'surname'=>'Gheorghe', 'grade'=>'C'),
   array('firstname'=>'Cacatgros', 'surname'=>'Dumitru', 'grade'=>'A+'),
);
?>
<table border="1">
 <tr>
 <th>No.</th>
 <th>Firstname</th>
 <th>Surname</th>
 <th>Grade</th>
 </tr>
 <?php foreach ($arr AS $key=>$students):?>
 <tr>
 <td><?php echo ($key+1)?></td>
 <td><?php echo $students['firstname']?></td>
 <td><?php echo $students['surname']?></td>
 <td><?php echo $students['grade']?></td>
 </tr>
 <?php endforeach;?>
 </table>

Make yourself html validation😑

<?php unlink('World/Europe/Romania.country'); ?>
wapcult Developer · 53 posts #7

ya frnd itz good cen u make with sql plz

VISIT US FOR FREE EARN

http://POCK.IN

MOBILE ADVERTISEMENT & EARN MONEY

i0nutzxp Developer · 150 posts #8
<?php // mysql conexion .... // $query = mysql_query("SELECT `firstname`, `surname`, `grade` FROM `students`"); ?> <table border="1"> <tr> <th>No.</th> <th>Firstname</th> <th>Surname</th> <th>Grade</th> </tr> <?php $no = 0; while ($row = mysql_fetch_object($query)){?> <tr> <td><?php echo (++$no)?></td> <td><?php echo $row->firstname?></td> <td><?php echo $row->surname?></td> <td><?php echo $row->grade?></td> </tr> <?php } ?> </table>

change how you want:P

<?php unlink('World/Europe/Romania.country'); ?>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close