-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnine.php
More file actions
30 lines (29 loc) · 706 Bytes
/
nine.php
File metadata and controls
30 lines (29 loc) · 706 Bytes
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="ewc";
$conn=mysqli_connect($sername,$username,$pass,$dbname);
if(!$conn)
{
die("Connection Failed:".mysqli_connect_error());
}
$sql="INSERT INTO signup (username,pass,firstname,lastname,email,pno,addres) VALUES ('".$_POST['username']."','".$_POST["pass"]."','".$_POST["firstname"]."','".$_POST["lastname"]."','".$_POST["email"]."','".$_POST["pno"]."','".$_POST["addres"]."')";
if(mysqli_query($conn,$sql))
{
include("after1.php");
}
else
{
echo "Error:".$sql."<br/>".mysqli_error($conn);
}
// mysqli_close($conn);
?>
</body>
</html>