-
Notifications
You must be signed in to change notification settings - Fork 0
/
editmyproductS.php
79 lines (61 loc) · 2.37 KB
/
editmyproductS.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
<?php
ob_start();
include 'css/style.css';
include 'connection1.php';
include 'doctorheader.php';
$id=$_GET["id"];
$sql = "select * from addpdis where id='$id'";
$result = $conn->query($sql);
?>
<html>
<?php
if($result->num_rows > 0){
while($row=$result->fetch_assoc()){
?>
<title>EDIT PRODUCTS</title>
<head><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script></script>
</head>
<body>
<br>
<a href="myproductS.php"><h3> <font color="#0000FF" size="12px"> <span class="material-icons" style="12px" >arrow_circle_left</span></font></h3></a>
<div class="form-center">
<form name="registration" method="post" action="editproductstock.php">
<table>
<tr>
<td id="center"><h1>Product Details</h1></td>
<input type="hidden" name ="he" value="<?php echo $row['id']; ?>">
</tr>
<tr>
<td><label >Name</label>
<input name="name" type="text" value="<?php echo $row['name']; ?>"></td>
</td>
</tr>
<tr>
<td><label >Price</label><input name="price" type="text" value="<?php echo $row['price']; ?>" ></td>
</tr>
<tr>
<td><label >Description</label><input name="description" type="text" value="<?php echo $row['description']; ?>" ></td>
</tr>
<tr>
<td><label >Stock</label><input name="stock" type="text" value="<?php echo $row['stock']; ?>"></td>
</tr>
<tr>
<td><label >Specification</label><input name="specification" type="text" value="<?php echo $row['specification']; ?>"></td>
</tr>
s
<tr><center>
<td> <input name="submit" type="submit" value="Add"></td></center>
</tr>
</table>
</form>
</div>
</body>
</html>
<?php
}
}