Jump to content

[SOLVED] WOW All i want to do is run this query..


Monkuar

Recommended Posts

$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,

<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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.