-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathprofile.php
102 lines (92 loc) · 2.64 KB
/
profile.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
<?php
session_start();
if(!isset($_SESSION['user'])){
header("location:userlogin.php?problem = not logged in");
exit();
}
?>
<?php
$uid = $_SESSION['user'];
?>
<html>
<head>
<title> Mission, Vision, Values</title>
<link rel="stylesheet" type="text/css" href="cssmain\goals.css">
</head>
<body>
<div id="wrapper">
<div id="header">
<br>
<a href="userhomepage.php" style="width:0px"><img src="images\sitelogo.png" alt="sitelogo"
style="float:left;width:610px;height:120px;"></a>
<div id="dropdown">
<ul id="drop-nav" style="font-family:Arial;">
<li><a href="userhomepage.php">HOME</a>
</li>
<li><a href="#">MY ACTION</a>
<ul>
<li><a href="books.php">View Books</a></li>
<li><a href="issue.php">My Issue Status</a></li>
</ul>
</li>
<li><a href="#">STUDY RESOURCES</a>
<ul>
<li><a href="usyllabus.php">Syllabus</a></li>
<li><a href="uebooks.php">E-books</a></li>
<li><a href="upapers.php">University Papers</a></li>
<li><a href="uonlinetest.php">Free Online Test</a></li>
</ul>
</li>
<li><a href="#">ABOUT US</a>
<ul>
<li><a href="ugoals.php">Our Goals</a></li>
<li><a href="umission.php">Mission, Vision & Core Values</a></li>
<li><a href="ucontactus.php">Contact Us</a></li>
</ul>
</li>
<li><a href="#">MY ACCOUNT</a>
<ul>
<li><a href="profile.php">View Profile</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</li>
</ul>
</div>
</div>
<hr>
<div id="down " style="background-color:white; color:black; padding:10px;margin-top:0px; width: 1295px; height:160px">
<p ><font size='8px' color='#2266FF'><img src="images\userinfo.png" alt="University"
style="float:left;width:200px;height:150px;"> <b>USER INFO<b></font></p>
</div>
<<div style="background-color:white; color:black; padding:20px; margin-top:0px; width:1275px; height:200px">
<center><h1></h1></center>
<table width='800' height='150' align='center' border='5' style="font-size:22px;">
<tr bgcolor='brown'>
<th>User ID</th>
<th>User Name</th>
<th>User Password</th>
<th>Gender</th>
</tr>
<tr>
<?php
mysql_connect("localhost","root");
mysql_select_db("library");
$query = "SELECT * FROM `user` WHERE `rno` LIKE '$uid'";
$run = mysql_query($query);
while(($row=mysql_fetch_array($run)))
{
$user_id = $row[2];
$user_name = $row[1];
$user_pass = $row[3];
$gen = $row[4];
?>
<td><?php echo $user_id ;?></td>
<td><?php echo $user_name; ?></td>
<td><?php echo $user_pass ;?></td>
<td><?php echo $gen; ?></td>
</tr>
<?php } ?>
</table>
</div>
</body>
</html>