-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakeResumeProcess.php
More file actions
34 lines (27 loc) · 905 Bytes
/
makeResumeProcess.php
File metadata and controls
34 lines (27 loc) · 905 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
31
32
33
34
<?php
session_start();
$servername = "localhost";
$email = $_POST['email'];
$name = $_POST['name'];
$phone = $_POST['phone'];
$age = $_POST['age'];
$languages = $_POST['languages'];
$wexp = $_POST['wexp'];
$college = $_POST['college'];
$degree = $_POST['degree'];
$username = $_SESSION['Username'];
$dbname = "wpl";
$conn = mysqli_connect($servername, 'root', '', $dbname);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$sql = "INSERT INTO Resume (Name, Age, Email, Phone, College, Degree, Languages, WExp, Username)
VALUES ('$name','$age','$email','$phone','$college','$degree','$languages','$wexp','$username')";
if (mysqli_query($conn, $sql)) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}
header('refresh:3;url=first.php');
mysqli_close($conn);
?>