Don's test

Php code posted by Don
created at 30 Dec 18:43

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
if ($_POST['action'] == "editnotes"){
  $id = mysql_real_escape_string($_POST['id']);
  //$contents =stripslashes(mysql_real_escape_string($_POST['value']));
  $contents =stripslashes($_POST['value']);
  $db_forum=connect_forumdb();
  $query = "UPDATE phorum_messages set body='".mysql_real_escape_string($contents)."' where message_id='".$id."' AND user_id='".$GLOBALS["USER"]["user_id"]."'";
  mysql_query($query,$db_forum);
  
  //echo stripslashes($contents);
  echo ($contents);
}
486 Bytes in 2 ms with coderay