ログインすると、彼は自分の個人情報を見ることができます。私は彼に彼のデータだけをPHPで示すことができますか?ログイン後にユーザデータを表示するphp
<?php
include_once("connection.php");
if($_SESSION['id'])
{
$_SESSION = ['id'];
$result = mysqli_query($connection, "select * from `student` where
`id` = $_SESSION[id]");
$show=mysqli_fetch_assoc($result);
if($show)
{
echo "welcome [username]";
}
}
?>
あなた自身の質問に答えたようですか? – Stuart
今問題は何ですか? –