In my database I've created a table called accounts. The accounts table contains: id, username, password, points.
This is the code I'm running to pull and display the Points variable.
$user = $_SESSION['sess_user'];
$sql = mysql_query("SELECT points FROM accounts WHERE username='".$user."'");
$points = $sql;
Then a bit further down I use this in html.
<p>Welkom, <?=$_SESSION['sess_user'];?>! Dit is jouw Managerpaneel. Je hebt momenteel <?=$points?> Managerpunten.</p>
Now, it does show the session Username, but it doesn't display anything for points :( it just completely skips it.
Any ideas?