-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconn.php
29 lines (26 loc) · 829 Bytes
/
conn.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
<?php
session_start();
$con = mysqli_connect("localhost","root","","teammate");
if(isset($_POST['save_select']))
{
$State= $_POST['State'];
$District = $_POST['District'];
$College = $_POST['College'];
$Email = $_POST['Email'];
$Tech= $_POST['Tech'];
$Interest = $_POST['Interest'];
$Experience = $_POST['Experience'];
$query = "INSERT INTO `find_team`(`State`, `District`, `College`, `Email`, `Tech`, `Interest`, `Experience`) VALUES ('$State','$District','$College','$Email','$Tech','$Interest','$Experience');";
$query_run = mysqli_query($con, $query);
if($query_run)
{
$_SESSION['status'] = "Inserted Succesfully";
header("Location: home.php");
}
else
{
$_SESSION['status'] = "Not Inserted";
header("Location: detail.php");
}
}
?>