Am trying to show the value of the $login_session in my welcome page but it doesn't show.
Any help on that
Welcome.html:
<?php
include("session.php");
?>
<html>
<h1>Welcome <?php echo $login_session; ?></h1>
</html>
Session.php
:
<?php
include ("db_connection.php"); session_start();
$user_check = $_SESSION['login_user'];
$ses_sql = mysqli_query($conn,"select First_name from User where Email = '$user_check' ");
$row = mysqli_fetch_array($ses_sql,MYSQLI_ASSOC);
$login_session = $row['First_name']; ?>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…