$sql = "SELECT * FROM users WHERE id";
hvorfor viser denne kode alle bruger og ikke kun den loggede ind bruger<?php
// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){
header("location: login.php");
exit;
}
// Attempt select query execution
$sql = "SELECT * FROM users WHERE id";
$result = mysqli_query($link, $sql);
$resultCheck = mysqli_num_rows($result);
if ($resultCheck > 0) {
while ($row = mysqli_fetch_assoc($result)) {