Replies

Forum Tutorial - Deleting Posts

Submitted by Yorkiebar on
Introduction: This tutorial is on how to add the ability for a user to delete their posts. The Theory: We could add a user panel where it lists all the users posts along with options to delete them, but instead we are going to add a delete option adjacent to the post itself to save space - plus I'm planning on making an admin panel tutorial soon. The PHP: So in the part of the PHP where we actually output each reply to a thread, we want to check if the logged in users' username held in the session variable is equal to the author of the post,

PHP/MySQLi Creating a Forum - Part 4 - Adding & Listing Replies

Submitted by Yorkiebar on
PHP/MySQLi Creating a Forum - Part 3 - Thread Page Introduction: This tutorial will be continuing my series of creating a forum in PHP/MySQLi/HTML. This is the fourth and (for now) the final part which is adding reply functionality. Pre-creation: First you will need a host for your PHP, either a web host or localhost is fine but you will need PHP and MySQL(i) capabilities. Also, this will not be covering creating users, or styling the pages.