-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit1.php
94 lines (94 loc) · 2.25 KB
/
edit1.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
<?php
include("connection.php");
session_start();
$id= $_GET['user_id'];
$sql="SELECT * FROM books1 WHERE user_id='$id'";
$data= mysqli_query($conn,$sql);
$result=mysqli_fetch_assoc($data);
?>
<!DOCTYPE html>
<html>
<head>
<title>please fill your detalis</title>
<style type="text/css">
*{
padding: 0;
margin: 0;
}
body{
background-color: #91214c;
}
table{
background-color: white;
width: 337px;
}
#container{
display: flex;
background-color: #009bda;
max-width: 383px;
margin: auto;
margin-top: 48px;
}
#label1{
color: #009bda;
}
#name,#address,#email,#phone,#password,#conpassword{
height: 30px;
width: 244px;
font-size: 14px;
}
</style>
</head>
<body>
<form method="POST" action="editaction1.php" enctype="multipart/form-data">
<div id="container">
<div>
<table cellspacing="25" cellspacing="0" align="center">
<tr>
<td colspan="2">
<h2 id="header" align="center" style="color: #009bda;">UPDATE NOW</h2>
</td>
</tr>
<tr>
<td>
<label id="label1"><b>Book-Name</b></label>
</td>
<td>
<input type="text" id="name" name="name" value="<?php echo $result['name']?>">
<input type="hidden" name="usrid" value="<?php echo $result['user_id']?>">
</td>
</tr>
<input type="text" name="uid" value="<?php echo $result['user_id']?> " hidden>
<tr>
<td>
<label id="label1"><b>Book-Price</b></label>
</td>
<td>
<input type="text" id="address" name="price" value="<?php echo $result['price']?>">
</td>
</tr>
<tr>
<td>
<label id="label1"><b>Book-Image</b></label>
</td>
<td>
<input type="file" name="uploadfile">
<input type="hidden" name="oldimg" value="<?php echo $result['photo']?>">
</td>
</tr>
<tr>
<td colspan="2">
<img src="<?php echo 'images/'.$result['photo']?>" height="100" width="100" style="margin-left: 82px;">
</td>
</tr>
<tr>
<td colspan="2" id="btn">
<input type="submit" id="submit" value="Update" style="color: white; background-color: #009bda; height: 38px; width: 96px;margin-top: 8px;">
</td>
</tr>
</table>
</div>
</div>
</form>
</body>
</html>