PHP Classes

File: sample_bstCountdown.php

Recommend this page to a friend!
  Classes of Bill L   bstCountdown   sample_bstCountdown.php   Download  
File: sample_bstCountdown.php
Role: Example script
Content type: text/plain
Description: Sample of how to call the class
Class: bstCountdown
Display a list of 'days until' a set of events
Author: By
Last change:
Date: 21 years ago
Size: 459 bytes
 

Contents

Class file image Download
<?
include_once("class.bstCountdown.php");
$title = "Countdown Test Page";
$contents = getCnt();

print(
"<html><head><title>$title</title></head>\n");
print(
"<body><h1>$title</h1>\n");
print(
$contents);
print(
"</body></html>");

function
getCnt()
{
   
$cd = new bstCountdown(); // no category ID specified, will return all events in the table
   
$r = $cd->formatCDowns(); // returns the formatted string of events
   
   
return $r;
}

?>