You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
297 B
PHTML
18 lines
297 B
PHTML
8 months ago
|
<?php
|
||
|
|
||
|
session_start();
|
||
|
|
||
|
|
||
|
if (isset($_SESSION["user_id"])) {
|
||
|
|
||
|
$mysqli = include __DIR__ . "/database.php";
|
||
|
|
||
|
$sql = "SELECT * FROM user WHERE id = {$_SESSION["user_id"]}";
|
||
|
|
||
|
$result = $mysqli->query($sql);
|
||
|
|
||
|
$user = $result->fetch_assoc();
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
<?= htmlspecialchars($user["name"]) ?>
|