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) Link to comment https://forums.phpfreaks.com/topic/136810-mysql-update-error/page/2/#findComment-715148 Share on other sites More sharing options...
fierdor Posted December 14, 2008 Author Share Posted December 14, 2008 It worked!!!!! THX A LOT!! Link to comment https://forums.phpfreaks.com/topic/136810-mysql-update-error/page/2/#findComment-715166 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.