-
Notifications
You must be signed in to change notification settings - Fork 0
/
profil_user.php
107 lines (54 loc) · 1.42 KB
/
profil_user.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
<?php
require "koneksi_ke_mysql.php";
require "data_akun_masuk.php";
if (!isset($_GET["profil"]))
{
header("location:home.php");
}
else
{
$id_user=$_GET["profil"];
$selected_user = mysqli_query($link, "SELECT * FROM ".$db_tabel_user." WHERE id_user = ".$id_user);
if(mysqli_affected_rows($link) === 0)
{
header("location:home.php");
}
else
{
$user = mysqli_fetch_array($selected_user, MYSQLI_ASSOC);
$user_id_user=$user["id_user"];
$user_nama_user=$user["nama_lengkap"];
$user_tentang=$user["tentang"];
$profile_pic="images/profile_pic/".$user["foto_profil"];
}
}
echo
"
<div id='header_user'>
<!--ISI FOTO PROFIL, NAMA, 'Selengkapnya...'-->
<div style='width:30%; float:left; height:200px;'>
<img src='".$profile_pic."' style=' height:200px; width: 200px; margin:0% 15%'/>
</div>
<div style='width:70%; height:120px; float:right; line-height:100px;'>
<span style='vertical-align:middle; display:inline-block; font-size:70px;'>"
.$user_nama_user
."
</span>
</div>
<div>
<pre>"
.$user_tentang
."</pre>
<a href='cv_viewer/index.php?user_id=$user_id_user' target='_blank'>View CV</a>
</div>
<div style='clear:both'>
</div>
</div>
<div id='content_user'>
<!--ISI POST-->";
require "kiriman_user.php";
echo
"
</div>
";
?>