@Hare , this is what I currently have
<?
ini_set('display_errors', 1);
require_once "header.php";
$sql = "SELECT * FROM users WHERE username = ?";
if($stmt = mysqli_prepare($link, $sql)){
mysqli_stmt_bind_param($stmt, 's', $_SESSION['username']);
if(mysqli_stmt_execute($stmt)){
$info = mysqli_fetch_array($stmt);
echo "Current Points:" . $info['points'];
} else {
echo "Can't find user";
}
}
mysqli_stmt_close($stmt);
?>
but get an error message of mysqli_fetch_array() expects parameter 1 to be mysqli_result