Postingan lainnya
Bagaimana cara menampilkan user yang sedang login berdasarkan tabel mysql
<?php
session_start();
if ($_SESSION['akses']!=="admin") {
# code...
header("index.php?pesan=gagal");
}
include 'koneksi.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>Admin</title>
<link rel="stylesheet" type="text/css" href="../../asset/index-admin.css">
</head>
<body>
<div class="head">
<form action="keluar" method="POST">
Catatan Perjalanan
<input type="submit" name="logout" value="Logout">
</div></form>
<div class="menu">
<a href="catatan_perjalanan.php">Catatan perjalanan</a>
<a href="profil.php">Profil</a>
<a href="tambah_perjalanan.php">Tambah Perjalanan</a>
</div>
<div class="body">
<p class="pembuka">SELAMAT DATANG</p>
<p class="pembuka">Di Website Catatan Perjalanan</p>
<div id="profil">
<?php
include 'koneksi.php';
$pilihtabel = mysqli_query($koneksi, "SELECT * from user where id = '$_SESSION[id]'");
$carifield = mysqli_fetch_array($pilihtabel);
?>
<label id="username"><?= $carifield=['username']?></label>
<tr><td><label>Akses : </label><td><?= $carifield=['akses']?></td></td></tr>
</div>
</div>
</body>
</html>Screenshot (209).png
Tanggapan
Pertanyaan kamu tidak jelas, coba dijelaskan lebih baik
jadi saya mau menampilkan profil user berdasarkan id user di tabel database, tapi tidak bisa muncul.
1 Jawaban:
<div><a href="https://www.blogtopnew.com/businessdirectory">top business directory</a><br>AAAM has actually carried out greater than 300 training courses including congresses around the world given that its start. The AAAM is the distinct U.S.A. individual of the International Union of Aesthetic Medicine (UIME), which is consisted of 29 member societies and 30,000 participants. AAAM's Head of state Emeritus, Dr. Michel Delune is just one of the original 4 charter member of the UIME, in addition to is Founder of the American Academy of Aesthetic Medication.</div>