what is commented out im trying to attempt, but its wrong: $body=stripped($_POST[post]); $edited="<i>This was edited by $user on $date</i>"; //$body=$body+$edited; $sql="update table set field='$body' where id ='$variable'" or die(mysql_error()); $query=mysql_query($sql) or die(mysql_error()); PHP: Silly question, however i never attempted this before haha. thanks <3
One thing you may want to consider is that this script is completely open to SQL injection. At the very least you should do this: $sql="update table set field='".mysql_real_escape_string($body)."' where id ='$variable'" or die(mysql_error()); PHP: You should also make sure to do it on any user entered fields when you initially insert the record.