Jump to content

Adding Delete Post Feature to Forum


brmcdani

Recommended Posts

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)

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.