PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of german gomez bajo  >  Simple comments  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: it a simple example
Class: Simple comments
Store and show user comments in site pages
Author: By
Last change: Just added some anotations
Date: 12 years ago
Size: 660 bytes


Class file image Download
/*you must type this lines in all pages you want comments*/
$start = new showSomething;
$start -> start();
    <title>This is my page!</title>
= new showSomething;
$form -> showForm("yes"); // type "yes" or "no" to anable or disable the form displaying
<h2>Comment list</h2>
= new showSomething;
$comments -> showComments(0); // type 0 if you want to show all the comment list, or a specific number to show just that number of comments