-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheleven.php
33 lines (32 loc) · 946 Bytes
/
eleven.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
<!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());
}
// session_start();
// $row["username"]= $_SESSION['username'];
// echo $row["username"]."hai";
$sql="INSERT INTO requests (username,firstname,lastname,email,pno,addres,typ,quantity,resadd,city,zip) VALUES ('".$_POST['username']."','".$_POST['firstname']."','".$_POST['lastname']."','".$_POST['email']."','".$_POST['pno']."','".$_POST['addres']."','".$_POST['typ']."','".$_POST["quantity"]."','".$_POST["resadd"]."','".$_POST["city"]."','".$_POST["zip"]."')";
if(mysqli_query($conn,$sql))
{
include("after2.php");
}
else
{
echo "Error:".$sql."<br/>".mysqli_error($conn);
}
// mysqli_close($conn);
?>
</body>
</html>