brmcdani Posted October 8, 2009 Share Posted October 8, 2009 Can someone send me in the right direction on how to add a delete post feature to my forum. Are there any examples of this anywhere on the net? Also I would like for the user to be able to upload pictures to their post as well. Any ideas on where to start? Quote Link to comment https://forums.phpfreaks.com/topic/177003-adding-delete-post-feature-to-forum/ Share on other sites More sharing options...
DEVILofDARKNESS Posted October 9, 2009 Share Posted October 9, 2009 For the deleting: You should add a button on which people can click and if they click you just have to send the post_id with $_POST. THen you need to do a query which deletes the actual post. $query = "DELETE FROM messages WHERE post_id = '$postid'" $result = mysql_query($query) Quote Link to comment https://forums.phpfreaks.com/topic/177003-adding-delete-post-feature-to-forum/#findComment-933767 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.