Yesideez Posted December 14, 2008 Share Posted December 14, 2008 $x=mysql_query("SELECT level FROM members WHERE member_id='$username'"); if ($x==2) You can't check against the data returned by mysql_query() alone - you need to run mysql_fetch_assoc() against $x to extract the data from it. $query=mysql_query("SELECT level FROM members WHERE member_id='$username'"); $x=mysql_fetch_assoc($query); if ($x['level']==2) Quote Link to comment Share on other sites More sharing options...
fierdor Posted December 14, 2008 Author Share Posted December 14, 2008 It worked!!!!! THX A LOT!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.