Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Not pulling in Database Info

$
0
0

Hello,

 

I have this code snippet that should pull in the information from my database, in this case username and email address:

<?php  
    if(!empty($_SESSION['LoggedIn']) && !empty($_SESSION['Username']))  
    {  
         ?>  
      
         <h1>Member Area</h1>  
         <pThanks for logging in! You are $lt;b><? echo $_SESSION['Username'] ?></b> and your email address is <b><? echo $_SESSION['EmailAddress']?></b>.</p>
           
         <?php 

The problem is- it does not pull them in and when I test my web page, it will only bring up this:

 

Member Area

and your email address is

 

 

 

I can verify that the information is stored in the database at this point. What shall I do? Thank you for helping.


Viewing all articles
Browse latest Browse all 13200

Trending Articles