So from the code you can see that it should be echoing the points and username values that are stored in the includes php file. Well... It's not and I'm frustrated! Is there something I'm doings wrong or just not getting?
config.php
$username = $_SESSION['username'];
$result = mysqli_query($connection, "SELECT points FROM users WHERE username = '$username'");
$row = mysqli_fetch_assoc($result);
$points = $row['points'];
index.php
<?php include('config.php'); ?>
<div id="container">
<?php echo $points . $username; ?>
</div>