-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jobseekerprofilebk.php
109 lines (95 loc) · 3.47 KB
/
Jobseekerprofilebk.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
//session_start();
// $_SESSION['username']
?>
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
<link rel="stylesheet" type="text/css" href="style.css" />
<title>User Profile</title>
</head>
<body>
<h1 align='center'>Welcome <?php echo $loggedin_session; ?>,</h1>
<p align='center'> You are now logged in. you can logout by clicking on signout link given below.</p>
<div id="st"><a href="logout.php" id="st-btn" align "right">Sign Out</a></div>
<?php
//*** execute the query
$dbhost = 'localhost';
$dbuser='user21';
$dbpass='6k1kTPLe';
$dbname='user21db';
//*** create a connection object
$conn = mysql_connect($dbhost, $dbuser, $dbpass)
or die (mysql_error());
mysql_select_db($dbname)
or die (mysql_error());
//*** die if no result
$sql="SELECT * FROM profile p JOIN
seeker s on p.sid=s.sid";
$result=mysql_query($sql);
if (!$result)
die("Query Failed.");
?>
<?php
while($rows=mysql_fetch_assoc($result)){ ?>
<form id="signin" id="reg">
<div id="reg-head" class="headrg"><strong>Your Profile</strong></div>
<table border="0" align="left" cellpadding="2" cellspacing="0">
<tr class="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Name</strong></div></td><br/>
<td class="tl-4"><?php echo $rows['fName']; ?>, <?php echo $rows['lName']; ?></td>
</tr>
<tr class="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>email</strong></div></td><br/>
<td class="tl-4"><?php echo $rows['email']; ?>, <?php echo $rows['phone']; ?></td>
</tr>
<tr class="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>address</strong></div></td><br/>
<td class="tl-4"><?php echo $rows['address']; ?></td>
</tr>
<tr class="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>city</strong></div></td><br/>
<td class="tl-4"><?php echo $rows['city']; ?>,<?php echo $rows['state']; ?></td>
</tr>
<tr class="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Skill</strong></div></td><br/>
<td class="tl-4"><?php echo $rows['skill']; ?></td>
</tr>
<tr class="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Desired Salary</strong></div></td><br/>
<td class="tl-4"><?php echo $rows['desired_salary']; ?></td>
</tr>
<tr class="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Job Type</strong></div></td><br/>
<td class="tl-4"><?php echo $rows['type_id']; ?></td>
</tr>
<tr class="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Projects</strong></div></td><br/>
<td class="tl-4"><?php echo $rows['projects']; ?></td>
</tr>
<tr class="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Award</strong></div></td><br/>
<td class="tl-4"><?php echo $rows['Honors']; ?></td>
</tr>
<tr class="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Hobby</strong></div></td><br/>
<td class="tl-4"><?php echo $rows['hobby']; ?></td>
</tr>
<tr class="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Language</strong></div></td><br/>
<td class="tl-4"><?php echo $rows['language']; ?></td>
</tr>
<tr class="lg-1">
<td class="tl-1"><div align="left" id="tb-name"><strong>Publication</strong></div></td><br/>
<td class="tl-4"><?php echo $rows['publication']; ?></td>
</tr>
</table>
</form>
<?php }
mysql_close();
?>
</br>
<div id="footer">
</body>
</html>