📜  session - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:02.754000             🧑  作者: Mango

代码示例2
$sql = "SELECT name, email FROM users WHERE username = '" . $_SESSION['username'] . "'";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
echo "Hello, " . $row['name'] . " (" . $row['email'] . ").";