onthespot Posted August 10, 2009 Share Posted August 10, 2009 This is my code $query="UPDATE ".TBL_USERS." SET userlevel = 1 WHERE username = '$user'"; if (md5($user) == $_GET['act']){ mysql_query($query); } That is returning a parse error. How can I add an else statement where I can echo a message? Quote Link to comment https://forums.phpfreaks.com/topic/169694-md5/ Share on other sites More sharing options...
oni-kun Posted August 10, 2009 Share Posted August 10, 2009 Messy code.. $query="UPDATE ".TBL_USERS." SET userlevel = 1 WHERE username = '$user'"; if (md5($user) == $_GET['act']){ mysql_query($query); } Quote Link to comment https://forums.phpfreaks.com/topic/169694-md5/#findComment-895203 Share on other sites More sharing options...
onthespot Posted August 10, 2009 Author Share Posted August 10, 2009 still giving me an error on the md5 line?? Quote Link to comment https://forums.phpfreaks.com/topic/169694-md5/#findComment-895206 Share on other sites More sharing options...
play_ Posted August 11, 2009 Share Posted August 11, 2009 No parse error here. What is the error you're getting? Quote Link to comment https://forums.phpfreaks.com/topic/169694-md5/#findComment-895210 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.