-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompany_jobverify.php
48 lines (29 loc) · 1003 Bytes
/
company_jobverify.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php session_start(); ?>
<?php
if (!isset($_SESSION['username']) || !isset($_SESSION['name']) || !isset($_SESSION['login']) || $_SESSION['login']!=1)
{
echo "User Authentication Required";
echo '<meta http-equiv="Refresh" content="2;
URL=index.php">';
die();}
$job_desig=$_POST['job_desig'];
$job_describe=$_POST['job_describe'];
$place=$_POST['place'];
$date=$_POST['day'] . "/" . $_POST['month'] . "/" . $_POST['year'];
$con = mysql_connect("localhost","nsitonli_potter","Rj9868045066");
if(!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("nsitonli_trndpl",$con);
$name = $_SESSION['name'];
$sql="UPDATE companyprofile SET job_desig = '$job_desig', job_describe = '$job_describe', place = '$place', date = '$date'
WHERE username = '$name' ";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo '<meta http-equiv="Refresh" content="0;
URL=company_compensation.php">';
mysql_close($con);
?>