-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdateForm.php
54 lines (41 loc) · 1.27 KB
/
updateForm.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
<?php
$id=$_GET["id2"];
$con=mysql_connect("localhost","root","");
mysql_select_db("mykitchen");
$q=mysql_query("select * from items where id=$id");
$row=mysql_fetch_array($q);
mysql_close($con);
?>
<form action="http://localhost/IT_Project/myKitchen/myKitchen/update_ok.php" method="post">
update by category and name :
<br><br>
<table class='table table-hover table-responsive table-bordered'>
<input type="hidden" name="id3" value="<?php echo $id;?>">
<tr>
<td>Category</td>
<td><input type="text" name="category" id="category"/></td>
</tr>
<tr>
<td>Name</td>
<td><input type="text" name="name" id="name" /></td>
</tr>
<tr>
<td>Ingredients</td>
<td><textarea name='ingredients' class='ingredients'></textarea></td>
</tr>
<tr>
<td>Preparation</td>
<td><textarea name='preparation' class='preparation'></textarea></td>
</tr>
<tr>
<td>Picture</td>
<td><input type="text" name="picture" id="picture"/></td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" value="Update">
</td>
</tr>
</table>
</form>