-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofil.php
More file actions
50 lines (49 loc) · 1.2 KB
/
profil.php
File metadata and controls
50 lines (49 loc) · 1.2 KB
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
<?php
session_start();
include 'koneksi.php';
if (!isset($_SESSION["pelanggan"]))
{
echo "<script> alert('anda belum login');</script>";
echo "<script> location ='login.php';</script>";
}
?>
<?php include 'menu.php'; ?><br><br><br><br><br>
<?php
$id_pelanggan= $_SESSION["pelanggan"]['id_pelanggan'];
$ambil= $koneksi->query("SELECT *FROM pelanggan WHERE id_pelanggan='$id_pelanggan'");
$pecah=$ambil->fetch_assoc();?>
<!DOCTYPE html>
<html>
<head>
<title>Profil</title>
<link rel="stylesheet" type="text/css" href="admin/assets/css/bootstrap.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-6">
<table class="table">
<tr>
<th>Nama</th>
<th><?php echo $pecah['nama_pelanggan'] ?></th>
</tr>
<tr>
<th>Email</th>
<th><?php echo $pecah['email_pelanggan'] ?></th>
</tr>
<tr>
<th>Telepon</th>
<th><?php echo $pecah['telepon_pelanggan'] ?></th>
</tr>
<tr>
<th>Alamat</th>
<th><?php echo $pecah['alamat'] ?></th>
</tr>
</table>
<img src="fotoprofil/<?php echo $pecah['fotoprofil']?>" width="100px">
</div>
</div>
</div><br>
<?php include 'ubahprofil.php'; ?>
</body>
</html>