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'"); } 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") { 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. :-) Link to comment https://forums.phpfreaks.com/topic/139440-solved-if-not-working/#findComment-729404 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.