-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate2.php
More file actions
70 lines (48 loc) · 2.35 KB
/
update2.php
File metadata and controls
70 lines (48 loc) · 2.35 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Online Medicine-CFF</title>
<link rel="stylesheet" href="onlineMed.css"></head>
<body>
<header>
<img src="IMG-20190310-WA0009.jpg" align=left width="" height="35px">
<p align="right" id="donate"> <a href="" target="_blank">DONATE</a> </p>
<br>
</header>
<div class="head">
<b>
<a href="" id="home"> HOME </a>
<a href=""> CANCER </a>
<a href=""> TYPES OF CANCER </a>
<a href=""> ONLINE MEDICINE </a>
<a href=""> NURSING.COM </a>
<a href=""> AWARENESS
</a>
<a href=""> DONATION </a>
<a href=""> SIGN UP </a>
<a href=""> CONTACT </a>
</b>
</div>
<?php
$akil=$_POST['medi'];
$vishnu=$_POST['quantity'];
$servername="localhost";
$username='root';
$password='';
$con=mysqli_connect("$servername",$username,$password);
mysqli_select_db($con,'OnlineMed');
$query_select="update Cart set Prize1='$vishnu' where Product1='$akil' ";
$result=mysqli_query($con,$query_select);
$query_select1="update Cart set Prize2='$vishnu' where Product2='$akil' ";
$result1=mysqli_query($con,$query_select1);
$query_select2="update Cart set Prize3='$vishnu' where Product3='$akil' ";
$result2=mysqli_query($con,$query_select2);
?>
<center>
<p di="text">CART UPDATED SUCCESSFULLY! HAPPY SHOPPING</p>
<hr>
<pre>
<p> <a href="onlinemed.html"><img src="order-management-market-store-cart-trolley-shopping-1-5185.png" width="70px" height="70px"></a> <a href=""><img src="pay.png" width="70px" height="70px"></a> <a href="up.html"><img src="history-edit-512.png" width="70px" height="70px"></a></p>
</pre>
<p><b>CART |</b> <b>PAY |</b> <b>EDIT</b></p>
</center>