What I'm trying to do is (Using Sessions), once a user has logged in, have it echo something according to what's in their 'status' column.
//Selects the user from the database according to their login name
$sqlquery = "SELECT * from table WHERE id=('".$_SESSION['SESS_MEMBER_ID']."')";
//brings up the selected user
$results = mysql_query($sqlquery) or die(mysql_error());
// Checks to see which value for 'status' is equal
if ($status='1')
{echo "You have one foo";}
if ($status='2')
{echo "You have two foo.";}
if ($status='3')
{echo "You have two foo and a bar.";}
What it does, is echo every variable. "You have one fooYou have two foo.You have two foo and a bar." is what I get.
Oh great PHP overlords, what am I doing wrong? :queasy: