-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudentdetails.php
107 lines (82 loc) · 3.25 KB
/
studentdetails.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="MainPageCSS.css">
</head>
<body>
<div class="header">
<h2 style="color:#808080">Lanka Institute Of Technology</h2>
</div>
<ul >
<li><a class="active" href="MainPage.php">Home</a></li>
<li><a href="StudentRegisterPHP.php">Student Registration</a></li>
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">Employee Registration</a>
<div class="dropdown-content">
<a href="AcedamicRegisterPHP.php">Acedamic Registration</a>
<a href="NAcedamicRegisterPHP.php">NON-Acedamic Registration</a>
</div>
</li>
<li><a href="studentdetails.php">Student Details</a></li>
<li><a href="empdetails.php" class="dropbtn">Employee Details</a></li>
<li><a href="updatepage.php">Update Deatils</a></li>
<li><a href="removedata.php">Remove Deatils</a></li>
<li><a href="mongo.php">NoSQL Database(Mongo)</a></li>
<li><a href="modform.php">Modules</a></li>
<li><a href="pamentform.php">Payments</a></li>
<li><a href="labform.php">Labs</a></li>
<li><a href="tuteform.php">Tutes</a></li>
<li><a href="lecform.php">Lectures</a></li>
<li style="float:right"><a href="AdminLoginPHP.php">Admin logout</a></li>
</ul>
</body></html>
<?php
require_once('dbcon1.php');
//$fName = $_POST['fname'];
//$lName = $_POST['lname'];
//$eMail = $_POST['email'];
//$uName = $_POST['luname'];
//$Pwd = $_POST['lpwd'];
//$bDay = $_POST['bday'];
//$Gender = $_POST['gender'];
//$Joins= $_POST['joins'];
//$sql = "INSERT INTO vusers (fnames, lnames, emails, unames, passwords, bdays ,gender, joins) VALUES ('$fName','$lName','$eMail','$uName','$Pwd','$bDay','$Gender','$Joins')";
$sqli = "SELECT ussn,ufname,ulname,ubdate,uaddress,uemail,ugender,uage,payment_method,timeperiod,udegree_code FROM undergraduate ";
$response = @mysqli_query($dbc, $sqli);
if ($response) {
echo '<table border=1 align="left" cellspacing="10" cellpadding="8">
<tr><td align="left"><b>SSN</b></td>
<td align="left"><b>First Name</b></td>
<td align="left"><b>Last NAme</b></td>
<td align="left"><b>Birth Day</b></td>
<td align="left"><b>Address</b></td>
<td align="left"><b>E-mail</b></td>
<td align="left"><b>Gender</b></td>
<td align="left"><b>Age</b></td>
<td align="left"><b>Payment Method</b></td>
<td align="left"><b>Time Period</b></td>
<td align="left"><b>Degree Code</b></td>
</tr>';
while ($row = mysqli_fetch_array($response)) {
echo '<tr><td align="left">'.
$row['ussn'] . '</td><td align="left">' .
$row['ufname'] . '</td><td align="left">'.
$row['ulname'] . '</td><td align="left">'.
$row['ubdate'] . '</td><td align="left">'.
$row['uaddress'] . '</td><td align="left">'.
$row['uemail'] . '</td><td align="left">'.
$row['ugender'] . '</td><td align="left">'.
$row['uage'] . '</td><td align="left">'.
$row['payment_method'] . '</td><td align="left">'.
$row['timeperiod'] . '</td><td align="left">'.
$row['udegree_code'] . '</td><td align="left">'
;
echo '</tr>';
}
echo '</table>';
}else{
echo "Coudn't issue database query ";
@mysqli_error($dbc);
}
@mysqli_close($dbc);
?>