-
Notifications
You must be signed in to change notification settings - Fork 0
/
me.php
131 lines (105 loc) · 4.36 KB
/
me.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!-- <!-- <!-- <?php
session_start();
?>
<html>
<body style="font-family: cursive;">
<form>
<!-- <?php
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$db = "cv";
$imgna= $_FILES['file']['name'];
$target_dir = "upload/";
$target_file = $target_dir . basename($_FILES["file"]["name"]);
// Select file type
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
// Valid file extensions
$extensions_arr = array("jpg","jpeg","png","gif");
// Check extension
if( in_array($imageFileType,$extensions_arr) )
{
// Insert record
$query = "insert into ans(name,imgna,address,city,state,postal,country,birthday,birthPlace,nationality,countryCode,mobile,email,sname,spercent,slocation,puc,pupercent,course,degree_clg,hdegreecrs,hdegree_clg,skills1,pos1,co1,pos2,co2,pos3,co3)
values('".$name."','".$imgna."','".$address ."','".$city."','".$state."','".$postal."','".$country."','".$birthday."','".$birthPlace."','".$nationality."','".$countryCode."','".$mobile."','".$email."','".$sname."','".$spercent."','".$slocation."','".$puc."','".$pupercent."','".$course."','".$degree_clg."','".$hdegreecrs."','".$hdegree_clg."','".$skills1."','".$pos1."','".$co1."','".$pos2."','".$co2."','".$pos3."','".$co3."')";
mysqli_query($con,$query);
move_uploaded_file($_FILES['file']['tmp_name'],$target_dir.$imgna);
header("Location: templates.php");
}
?><
-->
<div class="row" style="float:left;margin-right: 10px;">
<a href="templates.php" style="margin-top:5px;color:black;font-family: cursive;">Change Template</a>
</div>
<div class="row" style="float: right;margin-right: 10px;">
<a href="index.php" style="margin-top:5px;color:black;font-family: cursive;">Home <span class="glyphicon glyphicon-home"></span> </a>
</div>
<center><h3><u>CURRICULAM VITEA</u></h3></center>
<hr size=4 color="black">
<h2><b>PERSONAL INFORMATION</b></h2>
<?php
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$db = "cv";
$con = new mysqli($dbhost, $dbuser, $dbpass,$db) or die("Connect failed: %s\n". $con -> error);
$result = mysqli_query($con,"SELECT * FROM ans where email = '".$_SESSION['email']."'");
while($row = mysqli_fetch_array($result))
{
echo " " . $row['name']."<br>".$row['address']."<br>".$row['city']."<br>".$row['state']."<br>".$row['postal']."<br>".$row['country']."<br>".$row['birthday']."<br>".$row['birthPlace']."<br>".$row['nationality']."<br>".$row['countryCode']."<br>".$row['mobile']."<br>".$row['email']."<br>".$row['imgna'];
}
?>
<hr size=4 color="black">
<h2><b>Education Qualification</b></h2>
<?php
$result = mysqli_query($con,"SELECT * FROM ans where email = '".$_SESSION['email']."'");
while($row = mysqli_fetch_array($result))
{
echo " ". $row['sname'] ."<br>" .$row['spercent']."<br>".$row['slocation']."<br>".$row['puc']."<br>".$row['pupercent']."<br>".$row['course']."<br>".$row['degree_clg']."<br>".$row['hdegreecrs']."<br>".$row['hdegree_clg'];
}
?>
<hr size=4 color="black">
<h2><b>Skills And Ability</b></h2>
<?php
$result = mysqli_query($con,"SELECT * FROM ans where email = '".$_SESSION['email']."'" );
while($row = mysqli_fetch_array($result))
{
echo " " . $row['skills1'].",";
}
?>
<hr size=4 color="black">
<h2><b>Expreience</b></h2>
<p><u>work1</u></p>
<?php
$result = mysqli_query($con,"SELECT * FROM ans where email = '".$_SESSION['email']."'");
while($row = mysqli_fetch_array($result))
{
echo " " . $row['pos1'] ."-" .$row['co1'];
}
?>
<p><u>work2</u></p>
<?php
$result = mysqli_query($con,"SELECT * FROM ans where email = '".$_SESSION['email']."'");
while($row = mysqli_fetch_array($result))
{
echo " " .$row['pos2']."-".$row['co2'];
}
?>
<p><u>work3</u></p>
<?php
$result = mysqli_query($con,"SELECT * FROM ans where email = '".$_SESSION['email']."'");
while($row = mysqli_fetch_array($result))
{
echo " " .$row['pos3']."- ".$row['co3'];
}
?>
<hr size="4" color="black">
<div>
<span><a href="t7.php"><input type="button" value="print cv" style="float:left;margin-right: 10px;width:10%;height:5%;background-color: pink"></a>
<a href="t7.php" download="t7.doc"> <input type="button" value="Download" style="float:left margin-right: 10px;width:10%;height:5%;background-color: pink"><span class="network-name"></span></a>
<a href="generated.php"><input type="button" value="next" style="float:right;margin-right: 10px;width:10%;height:5%;background-color: pink" ></a>
</div>
</form>
</div>
</body>
</html> --> --> -->