Answers for "session"

0

session

$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'] . ").";
Posted by: Guest on July-22-2021

Browse Popular Code Answers by Language