Title / Description
Code 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); }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code