-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathuser.php
102 lines (88 loc) · 2.59 KB
/
user.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['user2'])){
header("location:adminlogin.php?problem = not logged in");
exit();
}
?>
<html>
<head>
<meta charset="utf-8">
<title>Studious Me</title>
<link rel="stylesheet" type="text/css" href="cssmain\admin.css">
</head>
<body>
<div id="wrapper">
<div id="header">
<br>
<a href="adminhomepage.php"><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="adminhomepage.php">HOME</a>
</li>
<li><a href="#">MY ACTION</a>
<ul>
<li><a href="abooks.php">Book Database</a></li>
<li><a href="addbooks.php">Add Book</a></li>
<li><a href="astatus.php">Issue Book</a></li>
<li><a href="areturnfine.php">Return Book</a></li>
<li><a href="user.php">Member Database</a></li>
</ul>
</li>
<li><a href="#">ABOUT US</a>
<ul>
<li><a href="agoals.php">Our Goals</a></li>
<li><a href="amission.php">Mission, Vision & Core Values</a></li>
<li><a href="acontactus.php">Contact Us</a></li>
</ul>
</li>
<li><a href="#">MY ACCOUNT</a>
<ul>
<li><a href="alogout.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>MEMBER DATABASE<b></font></p>
</div>
<<div style="background-color:white; color:black; padding:20px; margin-top:0px; width:1275px; height:auto">
<table width='800' align='center' border='5'>
<tr bgcolor='brown'>
<th>User ID</th>
<th>User Name</th>
<th>Roll no</th>
<th>User Password</th>
<th>Gender</th>
<th>Delete User</th>
</tr>
<tr>
<?php
mysql_connect("localhost","root");
mysql_select_db("library");
$query = "select * from user";
$run = mysql_query($query);
while(($row=mysql_fetch_array($run)))
{
$user_id = $row[0];
$user_name = $row[1];
$roll=$row[2];
$user_pass = $row[3];
$gen = $row[4];
?>
<td><?php echo $user_id ;?></td>
<td><?php echo $user_name; ?></td>
<td><center><?php echo $roll ;?></center></td>
<td><center><?php echo $user_pass; ?></center></td>
<td><center><?php echo $gen; ?></center></td>
<td><center><a href='Delete.php?del=<?php echo $user_id;?>' style="color: blue">Delete</center></td>
</tr>
<?php } ?>
</table>
</div>
</body>
</html>