I have the following PHP code on my site:
$query="SELECT lastname FROM user";
$result=mysql_query($query);
The name of the field I want to show on my webpage is lastname, while user is the name of the table itself.
The HTML body of my website is:
Welcome <?php echo $_SESSION['$result']; ?>.
This is not working, can someone please assist me.