JayJabber Posted June 3, 2011 Share Posted June 3, 2011 $update_pass = mysql_query("UPDATE `clients` SET `ip` = '$ip', `port` = '$port', `header` = '$header', `footer` = '$footer', `jars` = '$newp', `password` = '$newp', WHERE `name` = '".$user_data."' LIMIT 1"); $final_report.="Your new information has been saved, you will need to login again."; @session_destroy(); I dont know whats wrong it dnt show a error message but does not update. Quote Link to comment https://forums.phpfreaks.com/topic/238290-something-wrong/ Share on other sites More sharing options...
revraz Posted June 3, 2011 Share Posted June 3, 2011 Use mysql_error after your query to see why. Echo your query to see if your variables are populated. Remove the Limit 1. Remove the comma after '$newp' Quote Link to comment https://forums.phpfreaks.com/topic/238290-something-wrong/#findComment-1224525 Share on other sites More sharing options...
JayJabber Posted June 3, 2011 Author Share Posted June 3, 2011 Use mysql_error after your query to see why. Echo your query to see if your variables are populated. Remove the Limit 1. Remove the comma after '$newp' Thanks it worked your a star and the first person that helped me proper Quote Link to comment https://forums.phpfreaks.com/topic/238290-something-wrong/#findComment-1224526 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.