Clinton Posted January 4, 2009 Share Posted January 4, 2009 $locked is correctly echoing yes. So why is this not working? if ($locked == "no"); { $query = mysql_query("SELECT crat FROM rat WHERE id = '1'"); $row = mysql_fetch_assoc($query); extract($row); $query = mysql_query("UPDATE employers SET uprat='$crat', locked='yes' WHERE username = '$uid'"); } Quote Link to comment https://forums.phpfreaks.com/topic/139440-solved-if-not-working/ Share on other sites More sharing options...
premiso Posted January 4, 2009 Share Posted January 4, 2009 Parse error: if ($locked == "no"); { To if ($locked == "no") { Quote Link to comment https://forums.phpfreaks.com/topic/139440-solved-if-not-working/#findComment-729400 Share on other sites More sharing options...
Clinton Posted January 4, 2009 Author Share Posted January 4, 2009 Thanks Premiso. It's amazing how one small thing can ruin it for the rest of the code. :-) Quote Link to comment https://forums.phpfreaks.com/topic/139440-solved-if-not-working/#findComment-729404 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.