PHP Classes

Comment: Manage a comment system using an SQL database

Recommend this page to a friend!
  Info   View files Example   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 61%Total: 3,044 All time: 1,200 This week: 177Up
Version License PHP version Categories
comment 1.0.0GNU Lesser Genera...4.0Databases, Content management


This class can be used to manage a generic comments system. It could be used to add comments to a blog, a guest book, etc..

The comments are stored in an SQL database table. The class can install the table and associated indexes. Currently it supports MySQL and Microsoft SQL server.

The class can add new comments, update an existing comment, generate HTML forms to submit a comment and show the comments summary.

It works fine with PHP versions 4 and greater.


What is the best PHP guestbook class?
I want to query a database and add names to a guestbook

Innovation Award
PHP Programming Innovation award nominee
July 2006
Number 5

Prize: One downloadable copy of PhpED Professional
The possibility to post comments about the content that is published in Web site pages is very interesting.

It helps attracting more users that are able to participate in the site communities in a relevant way, even if it is just by letting them express their opinions.

This package provides a generic solution that could be used to let the users post comments about articles, blog posts, reviews, in guest books, etc..

Manuel Lemos
Picture of Peter Klauer
Name: Peter Klauer <contact>
Classes: 18 packages by
Country: Germany Germany
Age: 64
All time rank: 352 in Germany Germany
Week rank: 703 Down28 in Germany Germany Down
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imagecss (1 file)
Plain text file class_comment.php Class Show the comments
Accessible without login Plain text file class_comment_admin.php Aux. Use this class to validate the comments or to delete them
Accessible without login Plain text file test_comment.php Example How to implement the comment class
Accessible without login Plain text file License_LGPL-3.0.txt Lic. LGPL License
Accessible without login Plain text file CHANGELOG.txt Doc. Changes

  Files folder image Files  /  css  
File Role Description
  Accessible without login Plain text file comment.css Aux. Default CSS file 19KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
SQL Table Download .zip .tar.gz Sqltable is needed to display the comment entries. Required
 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,200
This week:177Up
User Ratings User Comments (2)
 All time
well done
13 years ago (Naga Subrahmanyam)
13 years ago (kishore kumar)