-
Notifications
You must be signed in to change notification settings - Fork 0
/
student_in_dis.php
49 lines (49 loc) · 1.57 KB
/
student_in_dis.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
include("includes/connect.php");
//var_dump($_GET['clid']);
$ge=explode(",", $_GET['clid']);
$clids=$ge[1];
$yeid=$ge[0];
$r=mysqli_query($conn,"SELECT *FROM classes WHERE classes.cl_id='$clids'");
$ro=mysqli_fetch_array($r);
?>
<html>
<head>
<title></title>
</head>
<body>
<table style="margin-top:3%;margin-left:2%;">
<tr align="center">
<td colspan="3"></td>
</tr>
<tr>
<td style="text-align:center;font-size:150%;color:none;"># </td>
<td style="text-align:center;font-size:150%;color:none;">Student name</td>
<td style="text-align:center;font-size:150%;color:none;">Displine marks</td>
</tr>
<form method="POST" action="">
<input type="hidden" name="courid" value="<?php echo $_GET['coursesid'];?>">
<?php
$stuincl=mysqli_query($conn,"SELECT students.*,classes.* FROM students,classes WHERE
students.cl_id=classes.cl_id AND classes.cl_id='$clids'") or die(mysql_error());
$i=1;
while ($row=mysqli_fetch_array($stuincl)) {
$sid=$row['s_id'];//getting the student id
//var_dump($row);
?>
<tr>
<input type="hidden" name="yss" value="<?= $yeid?>">
<input type="hidden" name="sid" value="<?= $row['s_id'];?>">
<td><?php echo $i;?></td>
<td><?php echo $row['firstname'];?>  <?php echo $row['lastname'];?>   </td>
<td><input type="text" size="20" name='<?= $row['s_id']."1"; ?>'></td>
</tr>
<?php $i++; }?>
<tr>
<td colspan="4" align="right">
<input type="submit" name="save" value="Save" style="padding:1%;padding-right:2%;margin-right:0%;"></td>
</tr>
</form>
</table>
</body>
</html>