-
Notifications
You must be signed in to change notification settings - Fork 0
/
MCDETmod2.php
37 lines (35 loc) · 877 Bytes
/
MCDETmod2.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
<?php
$S_Name=$_POST["sname"];
$S_Phone=$_POST["sphno"];
$S_Add=$_POST["sadd"];
$R_Name=$_POST["rname"];
$R_Phone=$_POST["rphno"];
$R_Add=$_POST["radd"];
$sphno0=$_POST["sphno0"];
$rphno0=$_POST["rphno0"];
require_once "connect.php";
$sql="UPDATE reciever SET R_Name='$R_Name',R_Add='$R_Add' where R_Phone='$rphno0'";
if($conn->query($sql)==TRUE){
echo "Successfully updated";
}
else{
echo "Error updating Record".$conn->error;
}
$sql="UPDATE sender SET S_Name='$S_Name',S_Add='$S_Add' where R_Phone='$sphno0'";
if($conn->query($sql)==TRUE){
echo "Successfully updated";
}
else{
echo "Error updating Record".$conn->error;
}
$sql="UPDATE reciever SET R_Name='$R_Name',R_Add='$R_Add' where R_Phone='$$rphno0'";
if($conn->query($sql)==TRUE){
echo "Successfully updated";
}
else{
echo "Error updating Record".$conn->error;
}
?>
<html>
Successfully updated
</html>