Create a Comments Field for Websites

Опубликовано: 12 Февраль 2026
на канале: Open Source Tech Training
882
8

This video is a tutorial about how to create a comments section or field(s) for a website. Specifically it is using PHP and MongoDB, but could be almost any database type.

I tried to explain the logic, as well as some areas for improvement to the relatively simple code given. Feel free to skip or speed up (obviously) as you see fit.

What might not be too intuitive to certain viewers is that the web app used has a particular style, but you could apply this logic to any kind of blog or content creation site you want. Having a database capturing and mapping the submitted comments for a specific post can be done following the steps in this tutorial, just depends on how the website itself is laid out.

More information and links to the source code can be found at the link below.
https://opensourcetechtrn.blogspot.co...