-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkTemp.php
43 lines (37 loc) · 1.12 KB
/
checkTemp.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
<?php
include('db/connection.php');
session_start();
$username = $_SESSION['username'];
$query = "select * from cv_data where username = '$username'";
$query_run = mysqli_query($con,$query);
$row = mysqli_fetch_array($query_run);
if($username == $row[3])
{
$fetch_id = $_GET["id"];
if($fetch_id == 1)
{
echo"
<script>window.location.href = 'http://localhost/resume-Builder/clean-resume.php';</script>
";
}
else if($fetch_id == 2)
{
echo"
<script>window.location.href = 'http://localhost/resume-Builder/professional-resume.php';</script>
";
}
else
{
echo"
<script>window.location.href = 'http://localhost/resume-Builder/your_resume.php';</script>
";
}
//$check = mysqli_num_rows($query);
// header('location: templates.php');
}
else
{
header('location:resume.php');
}
//$edit_query = "select * from brand where brand_id='$edit_id'";
?>