-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnacedamicdeatils.php
67 lines (50 loc) · 1.95 KB
/
nacedamicdeatils.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
<?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);
?>