-
Notifications
You must be signed in to change notification settings - Fork 10
/
memberEdit.php
96 lines (58 loc) · 2.05 KB
/
memberEdit.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Admin login</title>
<link rel="stylesheet" type="text/css" href="screen.css" media="screen" />
</head>
<body>
<div id="header">
<img src="logo.png" name="logo" />
<p id="layoutdims"><marquee>Welcome to Online Library Management System</marquee></p>
</div>
<div class="colmask threecol">
<div class="colmid">
<div class="colleft">
<div class="col1">
<!-- Column 1 start -->
<?php
include 'conn.php';
$data = $mysqli->query("SELECT * FROM member WHERE Mid='$_GET[mid]'");
$r=$data->fetch_array();
echo "<h2>Edit Account</h2><hr>
<form method='POST' action='update_member.php'>
<table border='0'>
<tr> <td>Name : </td>
<td><input type='text' name='Name' value='$r[Name]'></td> </tr>
<tr> <td>RollNo : </td>
<td><input type='text' name='mid' value='$r[Mid]'></td> </tr>
<tr> <td>Email : </td> <td><input type='text' name='Email' value='$r[Email]'></td>
</tr>
<tr> <td>Password :</td> <td><input type='text' name='Password' value='$r[Password]'></td> </tr>
<tr> <td>Branch</td> <td><input type='text' name='Branch' value='$r[Branch]'></td> </tr>
<tr> <td>Year:</td> <td><input type='text' name='Year' value='$r[Year]'></td> </tr>
<tr> <td>Contact No:</td> <td><input type='text' name='ContactNo' value='$r[ContactNo]'></td> </tr>
<tr> <td>Address :</td> <td><textarea name='Address' class='25' rows='5'>$r[Address]</textarea></td> </tr>
<tr> <td><input type='submit' value='Update'></td>
</tr>
</table>
</form>";
?>
<!-- Column 1 end -->
</div>
<div class="col2">
<!-- Column 2 start -->
<!-- Column 2 end -->
</div>
<div class="col3">
<!-- Column 3 start -->
<div id="ads">
</div>
<!-- Column 3 end -->
</div>
</div>
</div>
</div>
<div id="footer">
</div>
</body>
</html>