Monkuar Posted July 5, 2009 Share Posted July 5, 2009 $DB->query("UPDATE ibf_members set mediate_msg = '{$ibforums->input['Post']}' WHERE id = '{$ibforums->member['id']}'"); Ok.. so im inside my php page, is there anyway i can make it so if i a click specific button it will run each specific query i put? Thanks... so confusing, Quote Link to comment https://forums.phpfreaks.com/topic/164832-solved-wow-all-i-want-to-do-is-run-this-query/ Share on other sites More sharing options...
Monkuar Posted July 5, 2009 Author Share Posted July 5, 2009 <form method=\"post\" action=\"\"> <input name=\"newname\" type=\"text\" id=\"textfield\"/> <input type=\"submit\" name=\"change\" value=\"Change now\" /> </form> if($_POST){ // since there a single form that can be submitted $DB->query("UPDATE ibf_members set mediate_msg = '".mysql_real_escape_string($_POST['newname'])."' WHERE id = '{$ibforums->member['id']}'"); echo 'Updated.'; } I GOT IT TO WORK!! YAY <3333333 Quote Link to comment https://forums.phpfreaks.com/topic/164832-solved-wow-all-i-want-to-do-is-run-this-query/#findComment-869152 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.