diff --git a/Code/Database/schema/srijas.sql b/Code/Database/schema/srijas.sql index 84b65b9..bbfb505 100644 --- a/Code/Database/schema/srijas.sql +++ b/Code/Database/schema/srijas.sql @@ -48,10 +48,20 @@ INSERT INTO `job_master` (`job_id`, `job_title`, `is_active`, `created_by`, `cre (2, 'Software Developer', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), (3, 'Software Engineer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), (4, 'Software Developer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), -(5, 'Software Engineer', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(6, 'Software Developer', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(7, 'Software Engineer Intern', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(8, 'Software Developer Intern', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'); +(5, 'Cloud Platform Engineer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(6, 'Cloud Platform Engineer', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(7, 'DevOps Engineer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(8, 'DevOps Engineer', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(9, 'Full Stack Engineer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(10, 'Full Stack Engineer', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(11, 'Machine Learning Engineer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(12, 'Machine Learning Engineer', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(13, 'Data Science Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(14, 'Data Scientist', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(15, 'Data Analytics Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(16, 'Data Analyst', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(17, 'Big Data Engineer Intern', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(18, 'Big Data Engineer', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'); -- -------------------------------------------------------- @@ -142,25 +152,40 @@ INSERT INTO `skill_master` (`skill_id`, `skill_title`, `is_active`, `created_by` (18, 'Perl', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), (19, 'MATLAB', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), (20, 'Fortran', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), -(21, 'C', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(22, 'Java', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(23, 'Python', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(24, 'C++', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(25, 'C#', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(26, 'Visual Basic', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(27, 'JavaScript', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(28, 'Assembly Language', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(29, 'PHP', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(30, 'SQL', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(31, 'Classic Visual Basic', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(32, 'Delphi/Object Pascal', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(33, 'Ruby', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(34, 'Go', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(35, 'Swift', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(36, 'R', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(37, 'Groovy', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(38, 'Perl', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'), -(39, 'MATLAB', b'1', -1, '2021-11-02 17:28:40', 0, '2021-11-02 17:28:40'); +(21, 'AWS', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(22, 'Azure', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(23, 'GCP', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(24, 'MATLAB', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(25, 'Terraform', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(26, 'Ansible', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(27, 'node.js', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(28, 'React', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(29, 'Angular', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(30, 'Splunk', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(31, 'Jenkins', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(32, 'Git', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(33, 'Jira', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(34, 'Flask', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(35, 'Django', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(36, 'Angular', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(37, 'Splunk', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(38, 'OpenCV', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(39, 'Tensorflow', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(40, 'Scikit-learn', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(41, 'Keras', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(42, 'Linux', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(43, 'Ruby on Rails', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(44, 'SQL', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(45, 'MySQL', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(46, 'MSSQL', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(47, 'GraphSQL', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(48, 'MongoDB', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(49, 'PostGreSQL', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(50, 'Hadoop', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(51, 'Kafka', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(52, 'Cassandra', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'), +(53, 'Elasticeearch', b'1', -1, '2021-11-01 04:44:31', 0, '2021-11-01 04:44:31'); + -- -------------------------------------------------------- @@ -186,9 +211,6 @@ CREATE TABLE `user_master` ( -- Dumping data for table `user_master` -- -INSERT INTO `user_master` (`user_id`, `user_fname`, `user_lname`, `user_email`, `user_password`, `user_preferred_job_id`, `is_active`, `created_by`, `created_at`, `updated_by`, `updated_at`) VALUES -(1, 'Hardik', 'Udeshi', 'hvudeshi@gmail.com', '', 1, b'1', -1, '2021-11-02 14:08:50', NULL, '2021-11-02 14:08:50'); - -- -------------------------------------------------------- -- diff --git a/Code/Web_app/login.php b/Code/Web_app/login.php index 14ca4f0..0998550 100644 --- a/Code/Web_app/login.php +++ b/Code/Web_app/login.php @@ -61,21 +61,22 @@ if ($_POST['inputEmail'] != "" && $_POST['inputPassword'] != ""){ echo "in if"; $sql_query = "select count(*) as cntUser from user_master where user_email='".$_POST['inputEmail']."' and user_password='".$_POST['inputPassword']."'"; - $result = $conn->query($sql); - echo "result"; - echo $result; + // echo $sql_query; + $result = $conn->query($sql_query); + // var_dump($result); $row = $result->fetch_assoc(); - + // var_dump($row); $count = $row['cntUser']; + // var_dump($count); - // echo "run query"; + echo "run query"; if($count > 0){ echo "count>0"; $_SESSION['uname'] = $_POST['inputEmail']; header('Location: home.php'); }else{ - // echo "Invalid username and password"; + echo "Invalid username and password"; } } diff --git a/Code/Web_app/sendData.php b/Code/Web_app/sendData.php index 5586350..8b7995b 100644 --- a/Code/Web_app/sendData.php +++ b/Code/Web_app/sendData.php @@ -13,7 +13,7 @@ * that indicate respectively whether the resume table code test cases * and the user table code test cases have passed. 1-> pass, 0-> fail */ -function executer($inputName, $inputEmail, $inputJobTypeId, $target_file){ +function executer($inputName, $inputEmail, $inputPassword, $inputJobTypeId, $target_file){ /** * Include the autoload.php file from the PdfParser application for * reading the text from the pdf. @@ -132,10 +132,10 @@ function executer($inputName, $inputEmail, $inputJobTypeId, $target_file){ * This segment of the code uses a prepared statement to insert the form data * into the user_master table */ -$stmt = $conn->prepare("INSERT INTO user_master (user_fname, user_lname, user_email, user_preferred_job_id, is_active, created_by) - VALUES (?, ?, ?, ?, ?, ?)"); +$stmt = $conn->prepare("INSERT INTO user_master (user_fname, user_lname, user_email, user_password, user_preferred_job_id, is_active, created_by) + VALUES (?, ?, ?, ?, ?, ?, ?)"); -$stmt->bind_param("sssiii", $firstName, $lastName, $inputEmail, $inputJobTypeId, $active, $created_by); +$stmt->bind_param("ssssiii", $firstName, $lastName, $inputEmail, $inputPassword, $inputJobTypeId, $active, $created_by); $stmt->execute(); $stmt->close(); @@ -334,6 +334,7 @@ function executer($inputName, $inputEmail, $inputJobTypeId, $target_file){ $inputName = $_POST["inputName"]; $inputEmail = $_POST["inputEmail"]; $inputJobTypeId = $_POST["inputJobTypeId"]; + $inputPassword = $_POST["inputPassword"]; $target_dir = "uploads/"; @@ -361,7 +362,7 @@ function executer($inputName, $inputEmail, $inputJobTypeId, $target_file){ } try{ - executer($inputName, $inputEmail, $inputJobTypeId, $target_file); + executer($inputName, $inputEmail, $inputPassword, $inputJobTypeId, $target_file); }catch(Exception $e){ echo "Code did not execute - caught exception in function call->function executer: ".$e->getMessage()."
"; }