-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathten.php
30 lines (29 loc) · 828 Bytes
/
ten.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
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<?php
$sername="localhost";
$username="root";
$pass="";
$dbname="chatbot";
$conn=mysqli_connect($sername,$username,$pass,$dbname);
if(!$conn)
{
die("Connection Failed:".mysqli_connect_error());
}
$sql="update signup set password='".$_POST["password"]."' , firstname='".$_POST["firstname"]."' , lastname='".$_POST["password"]."' , email='".$_POST["email"]."' , pno='".$_POST["pno"]."', ano='".$_POST["ano"]."' , pan='".$_POST["password"]."' , gst='".$_POST["gst"]."', gender='".$_POST["gender"]."' , pol='".$_POST["pol"]."' where username='".$_POST["password"]."' ";
if(mysqli_query($conn,$sql))
{
include("login.html");
}
else
{
echo "Error:".$sql."<br/>".mysqli_error($conn);
}
mysqli_close($conn);
?>
</body>
</html>